aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/sdl/graphics.cpp4
-rw-r--r--engines/sci/sfx/music.cpp2
2 files changed, 3 insertions, 3 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);
diff --git a/engines/sci/sfx/music.cpp b/engines/sci/sfx/music.cpp
index ea3ab28e63..f44c40f8b6 100644
--- a/engines/sci/sfx/music.cpp
+++ b/engines/sci/sfx/music.cpp
@@ -34,7 +34,7 @@ namespace Sci {
static const int nMidiParams[] = { 2, 2, 2, 2, 1, 1, 2, 0 };
static int f_compare(const void *arg1, const void *arg2) {
- return ((sciSound *)arg2)->prio - ((sciSound *)arg1)->prio;
+ return ((const sciSound *)arg2)->prio - ((const sciSound *)arg1)->prio;
}
SciMusic::SciMusic() {