aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r--backends/platform/sdl/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp
index 4a9c88419a..e02e2f0d1d 100644
--- a/backends/platform/sdl/graphics.cpp
+++ b/backends/platform/sdl/graphics.cpp
@@ -1583,9 +1583,9 @@ void OSystem_SDL::blitCursor() {
#ifdef USE_RGB_COLOR
if (_cursorFormat.bytesPerPixel > 1) {
if (_cursorFormat.bytesPerPixel == 2)
- color = *(uint16 *)srcPtr;
+ color = *(const uint16 *)srcPtr;
else
- color = *(uint32 *)srcPtr;
+ color = *(const uint32 *)srcPtr;
if (color != _mouseKeyColor) { // transparent, don't draw
uint8 r, g, b;
_cursorFormat.colorToRGB(color, r, g, b);