Cleaned up coordinate translation a little, SDL mouse handling is still broken and...
[supertux.git] / src / video / gl / gl_renderer.cpp
index 21ab41a..c71de0a 100644 (file)
@@ -667,6 +667,13 @@ GLRenderer::apply_video_mode(const Size& size, bool fullscreen)
   }
 }
 
+Vector
+GLRenderer::to_logical(int physical_x, int physical_y, bool foobar)
+{
+  return Vector(physical_x * float(SCREEN_WIDTH) / PHYSICAL_SCREEN_WIDTH,
+                physical_y * float(SCREEN_HEIGHT) / PHYSICAL_SCREEN_HEIGHT);
+}
+
 void
 GLRenderer::set_gamma(float gamma)
 {