From 05dcce35e196f97f1d9a624f274051c28ee92bca Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Sat, 31 Aug 2013 23:59:28 +0100 Subject: [PATCH] Revert "fix touch offest in window mode" This reverts commit 9eddd5e96382f55a1ed8db8b74979aac91aafd0a. --- src/src/org/renpy/android/SDLSurfaceView.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/src/org/renpy/android/SDLSurfaceView.java b/src/src/org/renpy/android/SDLSurfaceView.java index 83aedd8ef5..b92dfcbe8d 100644 --- a/src/src/org/renpy/android/SDLSurfaceView.java +++ b/src/src/org/renpy/android/SDLSurfaceView.java @@ -904,8 +904,6 @@ public boolean onTouchEvent(final MotionEvent event) { int sdlAction = -1; int pointerId = -1; int pointerIndex = -1; - int[] coords = new int[2]; - this.getLocationInWindow(coords); switch ( action ) { case MotionEvent.ACTION_DOWN: @@ -955,8 +953,8 @@ public boolean onTouchEvent(final MotionEvent event) { )); **/ SDLSurfaceView.nativeMouse( - (int)event.getX(i) - coords[0], - (int)event.getY(i) - coords[1], + (int)event.getX(i), + (int)event.getY(i), sdlAction, event.getPointerId(i), (int)(event.getPressure(i) * 1000.0),