From 659b312121bf1915a27e05ca984dcda9fc7cbfa6 Mon Sep 17 00:00:00 2001 From: fysx Date: Thu, 28 Aug 2014 11:44:32 +0200 Subject: [PATCH] fixed mousepress event coordinates --- jni/love/src/modules/event/sdl/Event.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jni/love/src/modules/event/sdl/Event.cpp b/jni/love/src/modules/event/sdl/Event.cpp index 2d657376..1762683c 100644 --- a/jni/love/src/modules/event/sdl/Event.cpp +++ b/jni/love/src/modules/event/sdl/Event.cpp @@ -44,6 +44,7 @@ namespace sdl // we want them in pixel coordinates (may be different with high-DPI enabled.) static void windowToPixelCoords(int *x, int *y) { +#ifndef LOVE_ANDROID double scale = 1.0; window::Window *window = Module::getInstance(Module::M_WINDOW); @@ -55,6 +56,7 @@ static void windowToPixelCoords(int *x, int *y) if (y != nullptr) *y = int(double(*y) * scale); +#endif } // SDL's event watch callbacks trigger when the event is actually posted inside