From 9af2b5ca3a1a6acbc4adb16c80688ac3bacd3f79 Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Mon, 19 Mar 2018 21:42:19 -0500 Subject: PSP2: fix touch sometimes not directly under finger --- backends/graphics/psp2sdl/psp2sdl-graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/graphics') 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); -- cgit v1.2.3