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:
James Brown 2002-12-28 05:26:21 +00:00
parent 77b905d0c2
commit f64806f85f

View File

@ -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);
}