From cdc12061b68f52bc6d1223b74b553329e36874c6 Mon Sep 17 00:00:00 2001 From: Brian Gunn Date: Sat, 3 Jan 2015 22:54:47 -0800 Subject: [PATCH] Fixed BitmapData.getPixels() to not change the image to turn it blue. --- legacy/project/src/common/Surface.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/legacy/project/src/common/Surface.cpp b/legacy/project/src/common/Surface.cpp index 2ce27b70d..f8fbe577b 100644 --- a/legacy/project/src/common/Surface.cpp +++ b/legacy/project/src/common/Surface.cpp @@ -1145,15 +1145,6 @@ void SimpleSurface::getPixels(const Rect &inRect,uint32 *outPixels,bool inIgnore src+=4; } outPixels += r.w; - - if (!(mPixelFormat & pfHasAlpha)) - { - for(int x=0;x