mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Initial (buggy) implementation of CURSOR_SET - the Cannon sequence now almost works, except for a centering bug
svn-id: r6220
This commit is contained in:
parent
77b905d0c2
commit
f64806f85f
@ -822,7 +822,17 @@ void Scumm_v8::o8_cursorCommand()
|
||||
for (i = 0; i < 16; i++)
|
||||
_charsetColorMap[i] = _charsetData[_string[1].t_charset][i] = (unsigned char)args[i];
|
||||
break;
|
||||
case 0xE9: // SO_CURSOR_PUT
|
||||
case 0xE9: // SO_CURSOR_PUT
|
||||
mouse.x = pop();
|
||||
mouse.y = pop();
|
||||
_virtual_mouse_x = mouse.x + virtscr[0].xstart;
|
||||
_virtual_mouse_y = mouse.y + camera._cur.y - (_realHeight / 2);
|
||||
_virtual_mouse_y -= 16;
|
||||
|
||||
_system->set_mouse_pos(mouse.x, mouse.y);
|
||||
_system->update_screen();
|
||||
warning("warped mouse to (%d, %d)", mouse.x, mouse.y);
|
||||
break;
|
||||
default:
|
||||
error("o8_cursorCommand: default case %d", subOp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user