mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 22:40:29 +02:00
Fix
This commit is contained in:
1 parent
f99a651c6a
commit
d7be4f883e
1 file changed
+2
-2
@@ -245,13 +245,13 @@ bool TouchControlLayoutScreen::touch(const TouchInput &touch) {
|
||||
newX = touch.x;
|
||||
// Snap to grid
|
||||
if (g_Config.bTouchSnapToGrid)
|
||||
newX -= (int)(touch.x-bounds.centerX()) % g_Config.iTouchSnapGridSize;
|
||||
newX -= (int)(touch.x - bounds.w) % g_Config.iTouchSnapGridSize;
|
||||
}
|
||||
if (touch.y > minTouchY && touch.y < maxTouchY) {
|
||||
newY = touch.y;
|
||||
// Snap to grid
|
||||
if (g_Config.bTouchSnapToGrid)
|
||||
newY -= (int)(touch.y-bounds.centerY()) % g_Config.iTouchSnapGridSize;
|
||||
newY -= (int)(touch.y - bounds.h) % g_Config.iTouchSnapGridSize;
|
||||
}
|
||||
pickedControl_->ReplaceLayoutParams(new UI::AnchorLayoutParams(newX, newY, NONE, NONE, true));
|
||||
} else if (mode == 1) {
|
||||
|
||||
Reference in new issue
Block a user