diff options
author | James Brown | 2002-04-22 18:01:32 +0000 |
---|---|---|
committer | James Brown | 2002-04-22 18:01:32 +0000 |
commit | aecbd8d8d2ae3ba44f5eac3f898c9281cd61acae (patch) | |
tree | 852e0363751c8c49c761e6c1c3b3f8c759e65da7 /sdl.cpp | |
parent | d5a0d0d531d63eebf35c21d7d158ed2533cd8da2 (diff) | |
download | scummvm-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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |