diff options
Diffstat (limited to 'backends/PalmOS/Src/zodiac_event.cpp')
-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; + } } } |