Fixed bug #1554904 ("KYRA1: No mouse cursor in latest SVN build"). GI_KYRA1 is

not a bit flag...

svn-id: r23834
This commit is contained in:
Torbjörn Andersson 2006-09-09 02:02:45 +00:00
parent fb27c58977
commit 18325259b8

View File

@ -1905,10 +1905,10 @@ void Screen::setMouseCursor(int x, int y, byte *shape) {
if (_vm->features() & GF_TALKIE)
shape += 2;
int mouseHeight = *(shape+2);
int mouseHeight = *(shape + 2);
int mouseWidth = (READ_LE_UINT16(shape + 3)) + 2;
if (_vm->game() & GI_KYRA1 && _vm->features() & GF_TALKIE)
if ((_vm->game() == GI_KYRA1) && (_vm->features() & GF_TALKIE))
shape -= 2;
uint8 *cursor = (uint8 *)malloc(mouseHeight * mouseWidth);