Add fix for cursors in CD version, from LordHoto.

svn-id: r19713
This commit is contained in:
Travis Howell 2005-11-27 04:16:51 +00:00
parent 38fc6b340b
commit 9e7d76883d

View File

@ -1614,7 +1614,10 @@ void Screen::setMouseCursor(int x, int y, byte *shape) {
int mouseHeight = *(shape+2);
int mouseWidth = (READ_LE_UINT16(shape + 3)) + 2;
if (_vm->features() & GF_TALKIE)
shape -= 2;
uint8 *cursor = (uint8 *)malloc(mouseHeight * mouseWidth);
fillRect(0, 0, mouseWidth, mouseHeight, 0, 8);
drawShape(8, shape, 0, 0, 0, 0);