Explorar el Código

Fixed parameter operation ordering for ease of reading

Sam Lantinga hace 4 años
padre
commit
8f964576da
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/video/cocoa/SDL_cocoamouse.m

+ 1 - 1
src/video/cocoa/SDL_cocoamouse.m

@@ -253,7 +253,7 @@ Cocoa_WarpMouseGlobal(int x, int y)
 static void
 Cocoa_WarpMouse(SDL_Window * window, int x, int y)
 {
-    Cocoa_WarpMouseGlobal(x + window->x, y + window->y);
+    Cocoa_WarpMouseGlobal(window->x + x, window->y + y);
 }
 
 static int