BLADERUNNER: JANITORIAL: Fix a compiler warning with a const cast. (#1719)
Tested and it works. Thanks for the fix!
This commit is contained in:
parent
a81e3add2f
commit
ea3f8f2e33
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue