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 0080877cc2
commit a31ca68bf5
5 changed files with 8 additions and 8 deletions

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];
}