summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-12-28 11:19:05 +0100
committerraysan5 <[email protected]>2020-12-28 11:19:05 +0100
commitabdd57db0b6b8fdf4ed203e349b74a23f296d4f0 (patch)
tree58420e8b1292cbb000874c2130a60d24158ceb93 /examples
parent227496bea7bd5e986ee39a888c25ec2169c491d5 (diff)
downloadraylib-abdd57db0b6b8fdf4ed203e349b74a23f296d4f0.tar.gz
raylib-abdd57db0b6b8fdf4ed203e349b74a23f296d4f0.zip
Review comments formating
Diffstat (limited to 'examples')
-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