fix for a bug in get(), also removed debug msg from mouse stuff

This commit is contained in:
benfry
2004-09-21 14:15:14 +00:00
parent d1c15fc8a5
commit 448a45f9fc
5 changed files with 8 additions and 8 deletions
-1
View File
@@ -601,7 +601,6 @@ public class PApplet extends Applet
mousePressed();
break;
case MouseEvent.MOUSE_RELEASED:
System.out.println("mouse released");
mousePressed = false;
mouseReleased();
break;
+1 -2
View File
@@ -292,8 +292,7 @@ public class PImage implements PConstants, Cloneable {
public int get(int x, int y) {
if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) return 0;
return (format == RGB) ?
(pixels[y*width + x] & 0x00ffffff) : pixels[y*width + x];
//(pixels[y*width + x] & 0xff000000) : pixels[y*width + x];
(pixels[y*width + x] | 0xff000000) : pixels[y*width + x];
}
+3
View File
@@ -189,6 +189,9 @@ X this was problem with rendering an image from PGraphics on board
X http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1091798655;start=0
X http://processing.org/discourse/yabb/YaBB.cgi?board=Syntax;action=display;num=1080671926;start=0
040921 morning
X bug in get() that was removing the high bits (rather than adding)
_ before graphics engine change, attach jogl stuff?
_ massive graphics engine changes
_ explicitly state depth()/nodepth()