mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix for a bug in get(), also removed debug msg from mouse stuff
This commit is contained in:
@@ -601,7 +601,6 @@ public class PApplet extends Applet
|
||||
mousePressed();
|
||||
break;
|
||||
case MouseEvent.MOUSE_RELEASED:
|
||||
System.out.println("mouse released");
|
||||
mousePressed = false;
|
||||
mouseReleased();
|
||||
break;
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user