diff options
author | Johannes Schickel | 2013-01-14 00:03:37 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-01-14 00:03:37 +0100 |
commit | 56b81877b9a18cfe5f448c051a683694552f15c9 (patch) | |
tree | 62a167ccbe6e4dca748199ffab40783e60c431c2 | |
parent | e474f695dfa693f9c0eb17f29c56589a4918c7f2 (diff) | |
download | scummvm-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.mm | 5 |
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) { |