summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--examples/core/core_window_letterbox.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/core/core_window_letterbox.c b/examples/core/core_window_letterbox.c
index f28f2a5f..1712b9ba 100644
--- a/examples/core/core_window_letterbox.c
+++ b/examples/core/core_window_letterbox.c
@@ -72,10 +72,9 @@ int main(void)
virtualMouse.y = (mouse.y - (GetScreenHeight() - (gameScreenHeight*scale))*0.5f)/scale;
virtualMouse = ClampValue(virtualMouse, (Vector2){ 0, 0 }, (Vector2){ gameScreenWidth, gameScreenHeight });
- // Apply the same transformation as the virtual mouse to the real mouse, to work with raygui.
- // SetMouseOffset(-(GetScreenWidth() - (gameScreenWidth * scale)) * 0.5f, -(GetScreenHeight() - (gameScreenHeight * scale)) * 0.5f);
- // SetMouseScale(1 / scale, 1 / scale);
-
+ // Apply the same transformation as the virtual mouse to the real mouse (i.e. to work with raygui)
+ //SetMouseOffset(-(GetScreenWidth() - (gameScreenWidth*scale))*0.5f, -(GetScreenHeight() - (gameScreenHeight*scale))*0.5f);
+ //SetMouseScale(1/scale, 1/scale);
//----------------------------------------------------------------------------------
// Draw