diff options
author | Chris Apers | 2007-01-21 09:55:44 +0000 |
---|---|---|
committer | Chris Apers | 2007-01-21 09:55:44 +0000 |
commit | d9e866398d125692444b7812bd3cbb95d3ab9977 (patch) | |
tree | c156c2a1e5126fc3bc3f72363dec6bb425890661 /backends/platform/PalmOS/Src/os5_event.cpp | |
parent | 0e5871b0ae868cb9401ce307c425935c4ed5220d (diff) | |
download | scummvm-rg350-d9e866398d125692444b7812bd3cbb95d3ab9977.tar.gz scummvm-rg350-d9e866398d125692444b7812bd3cbb95d3ab9977.tar.bz2 scummvm-rg350-d9e866398d125692444b7812bd3cbb95d3ab9977.zip |
Clenaup
svn-id: r25143
Diffstat (limited to 'backends/platform/PalmOS/Src/os5_event.cpp')
-rw-r--r-- | backends/platform/PalmOS/Src/os5_event.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/backends/platform/PalmOS/Src/os5_event.cpp b/backends/platform/PalmOS/Src/os5_event.cpp index 915da4ba4f..a1b07a0460 100644 --- a/backends/platform/PalmOS/Src/os5_event.cpp +++ b/backends/platform/PalmOS/Src/os5_event.cpp @@ -27,27 +27,13 @@ void OSystem_PalmOS5::get_coordinates(EventPtr ev, Coord &x, Coord &y) { Boolean dummy; EvtGetPenNative(WinGetDisplayWindow(), &ev->screenX, &ev->screenY, &dummy); - + x = (ev->screenX - _screenOffset.x); y = (ev->screenY - _screenOffset.y); if (_stretched) { - Int32 w, h; - - if (_mode == GFX_NORMAL) { - - h = gVars->screenHeight - MIN_OFFSET * 2; - w = gVars->screenWidth; - x = (_screenWidth * x) / w; - y = (_screenHeight * y) / h; - - } else { - - h = (_ratio.adjustAspect == kRatioHeight ? _ratio.height : gVars->screenFullHeight); - w = (_ratio.adjustAspect == kRatioWidth ? _ratio.width : gVars->screenFullWidth); - x = (_screenWidth * x) / w; - y = (_screenHeight * y) / h; - } + x = (x * _screenWidth) / _screenDest.w; + y = (y * _screenHeight) / _screenDest.h; } } |