aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/cursor.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-30 15:44:26 +0000
committerMartin Kiewitz2010-06-30 15:44:26 +0000
commit1287e6f252296d4c3fef58b080c4ae2fdef40a73 (patch)
treeb05e4d9f127470b26589a1f2cd2b8f51104e4206 /engines/sci/graphics/cursor.cpp
parentbcc010a56e6e58baf1f19f829802e1dbaad83f60 (diff)
downloadscummvm-rg350-1287e6f252296d4c3fef58b080c4ae2fdef40a73.tar.gz
scummvm-rg350-1287e6f252296d4c3fef58b080c4ae2fdef40a73.tar.bz2
scummvm-rg350-1287e6f252296d4c3fef58b080c4ae2fdef40a73.zip
SCI: adjust brRect and nsRect, if sci2 hires views are used, fixes hotspots in gk1
svn-id: r50536
Diffstat (limited to 'engines/sci/graphics/cursor.cpp')
-rw-r--r--engines/sci/graphics/cursor.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index 23c41c4c87..e1c05c97da 100644
--- a/engines/sci/graphics/cursor.cpp
+++ b/engines/sci/graphics/cursor.cpp
@@ -276,21 +276,8 @@ void GfxCursor::setPosition(Common::Point pos) {
Common::Point GfxCursor::getPosition() {
Common::Point mousePos = g_system->getEventManager()->getMousePos();
- switch (_upscaledHires) {
- case GFX_SCREEN_UPSCALED_640x400:
- mousePos.x /= 2;
- mousePos.y /= 2;
- break;
- case GFX_SCREEN_UPSCALED_640x440:
- mousePos.x /= 2;
- mousePos.y = (mousePos.y * 5) / 11;
- break;
- case GFX_SCREEN_UPSCALED_640x480:
- mousePos.x /= 2;
- mousePos.y = (mousePos.y * 5) / 12;
- default:
- break;
- }
+ if (_upscaledHires)
+ _screen->adjustBackUpscaledCoordinates(mousePos.y, mousePos.x);
return mousePos;
}