From abdd57db0b6b8fdf4ed203e349b74a23f296d4f0 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Mon, 28 Dec 2020 11:19:05 +0100 Subject: [PATCH] Review comments formating --- examples/core/core_window_letterbox.c | 7 +++---- 1 file 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