about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/title.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 31e2ab0..4091596 100644
--- a/src/main.c
+++ b/src/main.c
@@ -147,7 +147,7 @@ bool play_audio(int SoundEffect) {
 
 int main(int argc, char *argv[]) {
 	/* Credits acknowledgements */
-	fprintf(stdout, "Game Icon (resources/icon.svg) by 2xYz is licensed under Creative Commons. Check docs/credits.html for more info.\n");
+	fprintf(stdout, "Game Icon (resources/icon.svg) by 2xYz is licensed under Creative Commons. Check docs/credits.html for more info.\n\n");
 	/* Raylib Init */
 	SDL_Init(SDL_INIT_AUDIO);
 	InitWindow(1280, 720, "Pong");
diff --git a/src/title.c b/src/title.c
index d729f0a..d16ff84 100644
--- a/src/title.c
+++ b/src/title.c
@@ -304,7 +304,6 @@ static void settings(Camera2D *MainCamera, Mix_Music *TitleScreenMusic) {
             DrawText("<", 0,0,128,WHITE);
 			i = 0;
             for(i = 0; i < 10; i++) {
-				printf("%d\n", i);
                 if (CheckCollisionRecs(MouseCursor, SoundBar[i]) && IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) {
                     play_audio(SOUND_BOUNCE);
                     GlobalSettings.SoundVolume = i*10;
@@ -448,8 +447,10 @@ int title_screen() {
         if (IsKeyPressed(KEY_ESCAPE)) {
             EnableCursor();
             MouseCursorIn = false;
-        } else if (IsCursorOnScreen() && IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) {
+        } else if (IsCursorOnScreen() && IsMouseButtonPressed(MOUSE_BUTTON_LEFT) && MouseCursorIn != true) {
             DisableCursor();
+			BeginDrawing();
+			EndDrawing();
             MouseCursorIn = true;
         }
 		/* Mouse */