Ticket #9036: scummvm-engine-sci-cursorfix.patch
File scummvm-engine-sci-cursorfix.patch, 818 bytes (added by , 15 years ago) |
---|
-
engines/sci/gfx/gfx_driver.cpp
old new 262 261 byte color_key = GFX_CURSOR_TRANSPARENT; 263 262 if ((pointer->color_key != GFX_PIXMAP_COLOR_KEY_NONE) && (pointer->palette && (unsigned int)pointer->color_key < pointer->palette->size())) 264 263 color_key = pointer->palette->getColor(pointer->color_key).parent_index; 265 // Some cursors in SQ5 don't have a palette. The cursor palette seems to use 64 colors, so setting the color key to 63 works 266 // TODO: Is this correct? 264 // Some cursors in SQ5 or QFG3 don't have a palette. We set the color-key directly, seems to work fine 267 265 if (!pointer->palette) 268 color_key = 63;266 color_key = pointer->color_key;