Skip to content

Commit 05dcce3

Browse files
committed
Revert "fix touch offest in window mode"
This reverts commit 9eddd5e.
1 parent bae7a9e commit 05dcce3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/src/org/renpy/android/SDLSurfaceView.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,6 @@ public boolean onTouchEvent(final MotionEvent event) {
904904
int sdlAction = -1;
905905
int pointerId = -1;
906906
int pointerIndex = -1;
907-
int[] coords = new int[2];
908-
this.getLocationInWindow(coords);
909907

910908
switch ( action ) {
911909
case MotionEvent.ACTION_DOWN:
@@ -955,8 +953,8 @@ public boolean onTouchEvent(final MotionEvent event) {
955953
));
956954
**/
957955
SDLSurfaceView.nativeMouse(
958-
(int)event.getX(i) - coords[0],
959-
(int)event.getY(i) - coords[1],
956+
(int)event.getX(i),
957+
(int)event.getY(i),
960958
sdlAction,
961959
event.getPointerId(i),
962960
(int)(event.getPressure(i) * 1000.0),

0 commit comments

Comments
 (0)