aboutsummaryrefslogtreecommitdiff
path: root/sdl.cpp
diff options
context:
space:
mode:
authorJames Brown2002-04-22 18:01:32 +0000
committerJames Brown2002-04-22 18:01:32 +0000
commitaecbd8d8d2ae3ba44f5eac3f898c9281cd61acae (patch)
tree852e0363751c8c49c761e6c1c3b3f8c759e65da7 /sdl.cpp
parentd5a0d0d531d63eebf35c21d7d158ed2533cd8da2 (diff)
downloadscummvm-rg350-aecbd8d8d2ae3ba44f5eac3f898c9281cd61acae.tar.gz
scummvm-rg350-aecbd8d8d2ae3ba44f5eac3f898c9281cd61acae.tar.bz2
scummvm-rg350-aecbd8d8d2ae3ba44f5eac3f898c9281cd61acae.zip
Fix cursor hotspot offset. (swapped x/y coords)
svn-id: r4055
Diffstat (limited to 'sdl.cpp')
-rw-r--r--sdl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdl.cpp b/sdl.cpp
index 29a386580c..fb23be9fec 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -938,8 +938,8 @@ void OSystem_SDL::draw_mouse() {
if (SDL_LockSurface(sdl_screen) == -1)
error("SDL_LockSurface failed: %s.\n", SDL_GetError());
- const int ydraw = _ms_cur.y + _current_shake_pos - _ms_hotspot_x;
- const int xdraw = _ms_cur.x - _ms_hotspot_y;
+ const int ydraw = _ms_cur.y + _current_shake_pos - _ms_hotspot_y;
+ const int xdraw = _ms_cur.x - _ms_hotspot_x;
const int w = _ms_cur.w;
const int h = _ms_cur.h;
int x,y;