[Scummvm-git-logs] scummvm master -> 7a31472c811d9ba02eb9ee6bdb7d3e950b9f3ccf
dreammaster
paulfgilbert at gmail.com
Sat Feb 29 05:46:23 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7a31472c81 DRAGONS: Fix cast of const to non-const
Commit: 7a31472c811d9ba02eb9ee6bdb7d3e950b9f3ccf
https://github.com/scummvm/scummvm/commit/7a31472c811d9ba02eb9ee6bdb7d3e950b9f3ccf
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2020-02-28T21:46:16-08:00
Commit Message:
DRAGONS: Fix cast of const to non-const
Changed paths:
engines/dragons/screen.cpp
diff --git a/engines/dragons/screen.cpp b/engines/dragons/screen.cpp
index d470ff103f..ca04461255 100644
--- a/engines/dragons/screen.cpp
+++ b/engines/dragons/screen.cpp
@@ -397,7 +397,7 @@ void Screen::setScreenShakeOffset(int16 x, int16 y) {
void Screen::copyRectToSurface8bppWrappedY(const Graphics::Surface &srcSurface, byte *palette, int yOffset) {
byte *dst = (byte *)_backSurface->getBasePtr(0, 0);
for (int i = 0; i < 200; i++) {
- byte *src = (byte *)srcSurface.getPixels() + ((yOffset + i) % srcSurface.h) * srcSurface.pitch;
+ const byte *src = (const byte *)srcSurface.getPixels() + ((yOffset + i) % srcSurface.h) * srcSurface.pitch;
for (int j = 0; j < 320; j++) {
uint16 c = READ_LE_UINT16(&palette[src[j] * 2]);
if (c != 0) {
More information about the Scummvm-git-logs
mailing list