mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Touch control layout: Make sure no buttons are initialized off screen.
Fixes #19486
This commit is contained in:
1 parent
027385d218
commit
758776f216
1 file changed
+1
-1
+1
-1
@@ -731,7 +731,7 @@ void InitPadLayout(float xres, float yres, float globalScale) {
|
||||
auto initTouchPos = [=](ConfigTouchPos &touch, float x, float y) {
|
||||
if (touch.x == -1.0f || touch.y == -1.0f) {
|
||||
touch.x = x / xres;
|
||||
touch.y = y / yres;
|
||||
touch.y = std::max(y, 20.0f * globalScale) / yres;
|
||||
touch.scale = scale;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user