From 7651aa2bb7fac342a6d9aef2c37c25bfa1e9e975 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 20 Aug 2003 11:41:43 +0000 Subject: 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 --- sword2/driver/_mouse.cpp | 2 +- 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); -- cgit v1.2.3