Browse Source

Fixed dumb typo

Alex Szpakowski 11 years ago
parent
commit
0d52ac6d52
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/modules/event/sdl/Event.cpp
  2. 1 1
      src/modules/mouse/sdl/Mouse.cpp

+ 1 - 1
src/modules/event/sdl/Event.cpp

@@ -51,7 +51,7 @@ static void windowToPixelCoords(int *x, int *y)
 		*x = int(double(*x) * scale);
 		*x = int(double(*x) * scale);
 
 
 	if (y != nullptr)
 	if (y != nullptr)
-		*y = int(double(*x) * scale);
+		*y = int(double(*y) * scale);
 }
 }
 
 
 
 

+ 1 - 1
src/modules/mouse/sdl/Mouse.cpp

@@ -46,7 +46,7 @@ static void windowToPixelCoords(int *x, int *y)
 		*x = int(double(*x) * scale);
 		*x = int(double(*x) * scale);
 
 
 	if (y != nullptr)
 	if (y != nullptr)
-		*y = int(double(*x) * scale);
+		*y = int(double(*y) * scale);
 }
 }
 
 
 // And vice versa for setting mouse coordinates.
 // And vice versa for setting mouse coordinates.