diff options
author | Max Horn | 2003-01-09 16:57:09 +0000 |
---|---|---|
committer | Max Horn | 2003-01-09 16:57:09 +0000 |
commit | 1934269872eea22700803ba3e9d53f922a35eb31 (patch) | |
tree | 1d3bb7827a19a22c8d5927c45d0b23c00b0f14af /scumm/script_v8.cpp | |
parent | 80fde145481e56f82d589b51f9105152ee2f7dcf (diff) | |
download | scummvm-rg350-1934269872eea22700803ba3e9d53f922a35eb31.tar.gz scummvm-rg350-1934269872eea22700803ba3e9d53f922a35eb31.tar.bz2 scummvm-rg350-1934269872eea22700803ba3e9d53f922a35eb31.zip |
yet another warp mouse change, now it works on OS X, but will it work on Linux/Windows?
svn-id: r6370
Diffstat (limited to 'scumm/script_v8.cpp')
-rw-r--r-- | scumm/script_v8.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index 186e95d7ee..7dec6f626c 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -801,6 +801,15 @@ void Scumm_v8::o8_cursorCommand() _charsetColorMap[i] = _charsetData[_string[1].t_charset][i] = (unsigned char)args[i]; break; case 0xE9: // SO_CURSOR_PUT +#if 1 + { + int y = pop(); + int x = pop(); + + _system->warp_mouse(x, y); + _system->update_screen(); + } +#else _virtual_mouse_y = pop(); _virtual_mouse_x = pop(); @@ -811,6 +820,7 @@ void Scumm_v8::o8_cursorCommand() _system->warp_mouse(mouse.x, mouse.y); _system->update_screen(); // warning("warped mouse to (%d, %d) from %d-%d", _virtual_mouse_x, _virtual_mouse_y, _roomResource, vm.slot[_currentScript].number); +#endif break; default: error("o8_cursorCommand: default case 0x%x", subOp); |