diff options
author | Chris Apers | 2005-11-05 11:12:11 +0000 |
---|---|---|
committer | Chris Apers | 2005-11-05 11:12:11 +0000 |
commit | 1ad66c04acddedf0433ce81ae7761fa259c687da (patch) | |
tree | edb65838663e1e22c8e18bb426b448fe1ccaaefc /backends/PalmOS/Src | |
parent | 3c9800dad40a413d1978cc02a7f72ed8cd4370c3 (diff) | |
download | scummvm-rg350-1ad66c04acddedf0433ce81ae7761fa259c687da.tar.gz scummvm-rg350-1ad66c04acddedf0433ce81ae7761fa259c687da.tar.bz2 scummvm-rg350-1ad66c04acddedf0433ce81ae7761fa259c687da.zip |
Fixed mouse position
svn-id: r19448
Diffstat (limited to 'backends/PalmOS/Src')
-rwxr-xr-x | backends/PalmOS/Src/zodiac_event.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/backends/PalmOS/Src/zodiac_event.cpp b/backends/PalmOS/Src/zodiac_event.cpp index 0c6f17c46c..2082dae2e8 100755 --- a/backends/PalmOS/Src/zodiac_event.cpp +++ b/backends/PalmOS/Src/zodiac_event.cpp @@ -33,10 +33,20 @@ void OSystem_PalmZodiac::get_coordinates(EventPtr ev, Coord &x, Coord &y) { if (_stretched) { Int32 w, h; - h = (_ratio.adjustAspect == kRatioHeight ? _ratio.height : gVars->screenFullHeight); - w = (_ratio.adjustAspect == kRatioWidth ? _ratio.width : gVars->screenFullWidth); - x = (_screenWidth * x) / w; - y = (_screenHeight * y) / 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; + } } } |