Fixed BitmapData.getPixels() to not change the image to turn it blue.

This commit is contained in:
Brian Gunn
2015-01-03 22:54:47 -08:00
parent 5bc7622308
commit cdc12061b6

View File

@@ -1145,15 +1145,6 @@ void SimpleSurface::getPixels(const Rect &inRect,uint32 *outPixels,bool inIgnore
src+=4; src+=4;
} }
outPixels += r.w; outPixels += r.w;
if (!(mPixelFormat & pfHasAlpha))
{
for(int x=0;x<r.w;x++)
{
*a = 255;
a+=4;
}
}
} }
} }
} }