about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pong.h1
-rw-r--r--src/title.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pong.h b/src/pong.h
index ab74d07..fff6065 100644
--- a/src/pong.h
+++ b/src/pong.h
@@ -1,5 +1,6 @@
 #ifndef PONG_H
 #define PONG_H
+#define MOUSE_LEFT_BUTTON MOUSE_BUTTON_LEFT
 #include "raylib.h"
 #include <stdatomic.h>
 #include <stdio.h>
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);