fix filter(OPAQUE) / filter(RGB) (bug #1346)

This commit is contained in:
benfry
2009-10-10 01:16:31 +00:00
parent df2c1d2413
commit 492d3583ca
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -691,7 +691,7 @@ public class PImage implements PConstants, Cloneable {
throw new RuntimeException("Use filter(POSTERIZE, int levels) " +
"instead of filter(POSTERIZE)");
case RGB:
case OPAQUE:
for (int i = 0; i < pixels.length; i++) {
pixels[i] |= 0xff000000;
}