BLADERUNNER: JANITORIAL: Fix a compiler warning with a const cast. (#1719)

Tested and it works. Thanks for the fix!
This commit is contained in:
jepael 2019-06-29 10:57:55 +03:00 committed by Peter Kohaut
parent a81e3add2f
commit ea3f8f2e33

View file

@ -2173,7 +2173,7 @@ Graphics::Surface BladeRunnerEngine::generateThumbnail() const {
for (int x = 0; x < thumbnail.w; ++x) {
uint8 r, g, b;
uint16 srcPixel = *(uint16 *)_surfaceFront.getBasePtr(x * 8, y * 8);
uint16 srcPixel = *(const uint16 *)_surfaceFront.getBasePtr(x * 8, y * 8);
uint16 *dstPixel = (uint16 *)thumbnail.getBasePtr(x, y);
// Throw away alpha channel as it is not needed