mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-05 09:39:58 +00:00
Merge pull request #7731 from zackhow/point
Android: Fix pointer if game aspect ratio is larger than device's
This commit is contained in:
commit
af25b9aede
@ -53,7 +53,7 @@ public class InputOverlayPointer
|
||||
Float gameAR = NativeLibrary.GetGameAspectRatio();
|
||||
aspectAdjusted = gameAR / deviceAR;
|
||||
|
||||
if (gameAR < deviceAR) // Black bars on left/right
|
||||
if (gameAR <= deviceAR) // Black bars on left/right
|
||||
{
|
||||
xAdjusted = true;
|
||||
Integer gameX = Math.round((float) y * gameAR);
|
||||
@ -65,7 +65,7 @@ public class InputOverlayPointer
|
||||
else // Bars on top/bottom
|
||||
{
|
||||
xAdjusted = false;
|
||||
Integer gameY = Math.round((float) x * gameAR);
|
||||
Integer gameY = Math.round((float) x / gameAR);
|
||||
Integer buffer = (y - gameY);
|
||||
|
||||
maxWidth = (float) x / 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user