From 56b81877b9a18cfe5f448c051a683694552f15c9 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 14 Jan 2013 00:03:37 +0100 Subject: IPHONE: Recreate mouse texture on palette changes when needed. This fixes the color of the cursor in the Eye of the Beholder menu. --- backends/platform/iphone/osys_video.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backends/platform') 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) { -- cgit v1.2.3