diff options
author | Charadon <dev@iotib.net> | 2022-05-31 02:10:48 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-05-31 02:10:48 -0400 |
commit | e1c6396e259a164f57dec9ca6569cb29010a12fc (patch) | |
tree | 0827e1d07daa2761033587eb69ae643961741f8c /src/title.c | |
parent | cb42de03854921addb450e6a67cbe44dc9449ec0 (diff) | |
download | Pong-C-e1c6396e259a164f57dec9ca6569cb29010a12fc.tar.gz |
Fixed issue where window segfaulted when resized.
Diffstat (limited to 'src/title.c')
-rw-r--r-- | src/title.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/title.c b/src/title.c index fd57c2e..806c0d0 100644 --- a/src/title.c +++ b/src/title.c @@ -38,7 +38,7 @@ void title_screen() { if (CheckCollisionRecs(Mouse, Versus)) { Selected = &Versus; if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { - return; + return; } } else if (CheckCollisionRecs(Mouse, Marathon)) { Selected = &Marathon; @@ -53,7 +53,6 @@ void title_screen() { return; } } - MainCamera.zoom = GetScreenHeight()/720.0f; BeginDrawing(); ClearBackground(BLACK); BeginMode2D(MainCamera); |