diff options
author | jepael | 2019-06-29 10:57:55 +0300 |
---|---|---|
committer | Peter Kohaut | 2019-06-29 09:57:55 +0200 |
commit | ea3f8f2e33563987d8190cc66de75b6ac7f476db (patch) | |
tree | a5f6cf7a2cf875436a1ab48559288388042bd9e1 /engines | |
parent | a81e3add2f08692030607c8cde7965475793b86b (diff) | |
download | scummvm-rg350-ea3f8f2e33563987d8190cc66de75b6ac7f476db.tar.gz scummvm-rg350-ea3f8f2e33563987d8190cc66de75b6ac7f476db.tar.bz2 scummvm-rg350-ea3f8f2e33563987d8190cc66de75b6ac7f476db.zip |
BLADERUNNER: JANITORIAL: Fix a compiler warning with a const cast. (#1719)
Tested and it works. Thanks for the fix!
Diffstat (limited to 'engines')
-rw-r--r-- | engines/bladerunner/bladerunner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp index 4228e39273..7362291c74 100644 --- a/engines/bladerunner/bladerunner.cpp +++ b/engines/bladerunner/bladerunner.cpp @@ -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 |