Merge pull request #306 from gunnbr/issue270

Fixed BitmapData.getPixels() to not change the image to turn it blue.
This commit is contained in:
Joshua Granick
2015-01-05 10:00:08 -08:00

View File

@@ -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<r.w;x++)
{
*a = 255;
a+=4;
}
}
}
}
}