diff options
author | Torbjörn Andersson | 2003-08-20 11:41:43 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-08-20 11:41:43 +0000 |
commit | 7651aa2bb7fac342a6d9aef2c37c25bfa1e9e975 (patch) | |
tree | a403062117f3cd1ed37722c3e2820899be43bfe4 /sword2/driver | |
parent | 264b2d87675d2495ae5e169f8bdbfc23fd5603c6 (diff) | |
download | scummvm-rg350-7651aa2bb7fac342a6d9aef2c37c25bfa1e9e975.tar.gz scummvm-rg350-7651aa2bb7fac342a6d9aef2c37c25bfa1e9e975.tar.bz2 scummvm-rg350-7651aa2bb7fac342a6d9aef2c37c25bfa1e9e975.zip |
Applied a different fix for the mouse offset problem. As far as I can tell,
the old way would have made it impossible to access the (not yet
implemented) menu icons at the top of the window. I hope this one works...
svn-id: r9793
Diffstat (limited to 'sword2/driver')
-rw-r--r-- | sword2/driver/_mouse.cpp | 2 | ||||
-rw-r--r-- | sword2/driver/rdwin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sword2/driver/_mouse.cpp b/sword2/driver/_mouse.cpp index c214fac44c..1d3b77079f 100644 --- a/sword2/driver/_mouse.cpp +++ b/sword2/driver/_mouse.cpp @@ -240,7 +240,7 @@ int32 DrawMouse(void) { if (mouseAnim) { DecompressMouse(_mouseData, mouseSprite, mouseAnim->mousew * mouseAnim->mouseh); - g_sword2->_system->set_mouse_cursor(_mouseData, mouseAnim->mousew, mouseAnim->mouseh, mouseAnim->xHotSpot, mouseAnim->yHotSpot - MENUDEEP); + g_sword2->_system->set_mouse_cursor(_mouseData, mouseAnim->mousew, mouseAnim->mouseh, mouseAnim->xHotSpot, mouseAnim->yHotSpot); } return RD_OK; } diff --git a/sword2/driver/rdwin.cpp b/sword2/driver/rdwin.cpp index 156a21e3ab..f00f201c6c 100644 --- a/sword2/driver/rdwin.cpp +++ b/sword2/driver/rdwin.cpp @@ -167,7 +167,7 @@ void Sword2State::parseEvents() { break; case OSystem::EVENT_MOUSEMOVE: mousex = event.mouse.x; - mousey = event.mouse.y; + mousey = event.mouse.y - MENUDEEP; break; case OSystem::EVENT_LBUTTONDOWN: LogMouseEvent(RD_LEFTBUTTONDOWN); |