aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2013-01-14 00:03:37 +0100
committerJohannes Schickel2013-01-14 00:03:37 +0100
commit56b81877b9a18cfe5f448c051a683694552f15c9 (patch)
tree62a167ccbe6e4dca748199ffab40783e60c431c2
parente474f695dfa693f9c0eb17f29c56589a4918c7f2 (diff)
downloadscummvm-rg350-56b81877b9a18cfe5f448c051a683694552f15c9.tar.gz
scummvm-rg350-56b81877b9a18cfe5f448c051a683694552f15c9.tar.bz2
scummvm-rg350-56b81877b9a18cfe5f448c051a683694552f15c9.zip
IPHONE: Recreate mouse texture on palette changes when needed.
This fixes the color of the cursor in the Eye of the Beholder menu.
-rw-r--r--backends/platform/iphone/osys_video.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/iphone/osys_video.mm b/backends/platform/iphone/osys_video.mm
index ebe435cb25..a11bf32c54 100644
--- a/backends/platform/iphone/osys_video.mm
+++ b/backends/platform/iphone/osys_video.mm
@@ -148,6 +148,11 @@ void OSystem_IPHONE::setPalette(const byte *colors, uint start, uint num) {
}
dirtyFullScreen();
+
+ // Automatically update the mouse texture when the palette changes while the
+ // cursor palette is disabled.
+ if (!_mouseCursorPaletteEnabled && _mouseBuffer.format.bytesPerPixel == 1)
+ _mouseDirty = _mouseNeedTextureUpdate = true;
}
void OSystem_IPHONE::grabPalette(byte *colors, uint start, uint num) {