diff --git a/src/com/annimon/influencexxii/Pointer.java b/src/com/annimon/influencexxii/Pointer.java index 80e4fcd..2428cc0 100644 --- a/src/com/annimon/influencexxii/Pointer.java +++ b/src/com/annimon/influencexxii/Pointer.java @@ -89,10 +89,10 @@ public class Pointer { } private void validatePosition() { - if (x < 0) x = 0; - else if (x > screenWidth) x = screenWidth; + if (x < 2) x = 2; + else if (x > screenWidth - 2) x = screenWidth - 2; - if (y < 0) y = 0; - else if (y > screenHeight) y = screenHeight; + if (y < 2) y = 2; + else if (y > screenHeight - 2) y = screenHeight - 2; } } \ No newline at end of file