From 65ffc3ff4a8a7a12aff8961d020ebe16a727592f Mon Sep 17 00:00:00 2001 From: codeanticode Date: Fri, 21 Dec 2012 15:22:41 +0000 Subject: [PATCH] Fixes issue #1495 --- android/core/src/processing/opengl/PGL.java | 2 +- core/src/processing/opengl/PGL.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/core/src/processing/opengl/PGL.java b/android/core/src/processing/opengl/PGL.java index 8c3bdf556..f7370a54b 100644 --- a/android/core/src/processing/opengl/PGL.java +++ b/android/core/src/processing/opengl/PGL.java @@ -2056,7 +2056,7 @@ public class PGL { ((pixels[yindex] << 16) & 0xff0000) | (pixels[yindex] & 0xff00) | ((pixels[yindex] >> 16) & 0xff); - pixels[yindex] = (pixels[yindex] & 0xff000000) | + pixels[yindex] = (temp & 0xff000000) | ((temp << 16) & 0xff0000) | (temp & 0xff00) | ((temp >> 16) & 0xff); diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index 9b1a4abd2..e4361e825 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -2616,7 +2616,7 @@ public class PGL { ((pixels[yindex] << 16) & 0xff0000) | (pixels[yindex] & 0xff00) | ((pixels[yindex] >> 16) & 0xff); - pixels[yindex] = (pixels[yindex] & 0xff000000) | + pixels[yindex] = (temp & 0xff000000) | ((temp << 16) & 0xff0000) | (temp & 0xff00) | ((temp >> 16) & 0xff);