aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver/rdwin.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-08-20 11:41:43 +0000
committerTorbjörn Andersson2003-08-20 11:41:43 +0000
commit7651aa2bb7fac342a6d9aef2c37c25bfa1e9e975 (patch)
treea403062117f3cd1ed37722c3e2820899be43bfe4 /sword2/driver/rdwin.cpp
parent264b2d87675d2495ae5e169f8bdbfc23fd5603c6 (diff)
downloadscummvm-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/rdwin.cpp')
-rw-r--r--sword2/driver/rdwin.cpp2
1 files changed, 1 insertions, 1 deletions
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);