diff options
author | rsn8887 | 2018-03-19 21:42:19 -0500 |
---|---|---|
committer | rsn8887 | 2018-03-20 03:14:11 -0500 |
commit | 9af2b5ca3a1a6acbc4adb16c80688ac3bacd3f79 (patch) | |
tree | 4cbc5dd6b698a290f48446d8b28e7ae9c191b40c /backends/graphics | |
parent | a69294d5254e7df2e3d81ad94bd4fa4d6b2cd5b3 (diff) | |
download | scummvm-rg350-9af2b5ca3a1a6acbc4adb16c80688ac3bacd3f79.tar.gz scummvm-rg350-9af2b5ca3a1a6acbc4adb16c80688ac3bacd3f79.tar.bz2 scummvm-rg350-9af2b5ca3a1a6acbc4adb16c80688ac3bacd3f79.zip |
PSP2: fix touch sometimes not directly under finger
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/psp2sdl/psp2sdl-graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp index 1947f8f751..222cf0c6ef 100644 --- a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp +++ b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp @@ -264,7 +264,7 @@ void PSP2SdlGraphicsManager::SDL_UpdateRects(SDL_Surface *screen, int numrects, float sx, sy; float ratio = (float)screenW / (float)screenH; - if (aspectRatioCorrection) { + if (aspectRatioCorrection && (screenH == 200 || screenH == 400)) { ratio = 4.0 / 3.0; } @@ -281,7 +281,7 @@ void PSP2SdlGraphicsManager::SDL_UpdateRects(SDL_Surface *screen, int numrects, h = screenH; w = screenW; } - if (aspectRatioCorrection) { + if (aspectRatioCorrection && (screenH == 200 || screenH == 400)) { // stretch the height only if it fits, otherwise make the width smaller if (((float)w * (1.0 / ratio)) <= (float)dispH) { h = w * (1.0 / ratio); |