Bug 4576: fix wrong scaling
diff --git a/src/events/SDL_touch.c b/src/events/SDL_touch.c
index 9c6bbfa..0d227b4 100644
--- a/src/events/SDL_touch.c
+++ b/src/events/SDL_touch.c
@@ -254,7 +254,7 @@
             if (down) {
                 if (finger_touching == SDL_FALSE) {
                     int pos_x = (int)(x * (float)window->w);
-                    int pos_y = (int)(y * (float)window->y);
+                    int pos_y = (int)(y * (float)window->h);
                     finger_touching = SDL_TRUE;
                     first_finger = fingerid;
                     SDL_SendMouseMotion(window, SDL_TOUCH_MOUSEID, 0, pos_x, pos_y);
@@ -340,7 +340,7 @@
         if (window) {
             if (finger_touching == SDL_TRUE && first_finger == fingerid) {
                 int pos_x = (int)(x * (float)window->w);
-                int pos_y = (int)(y * (float)window->y);
+                int pos_y = (int)(y * (float)window->h);
                 SDL_SendMouseMotion(window, SDL_TOUCH_MOUSEID, 0, pos_x, pos_y);
             }
         }