From c82c2afbbd87eab2fd9f5a674801883894eb2505 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 16 Jan 2021 11:40:26 -0800 Subject: [PATCH] Unindent unfocused_run() and focused_begin() from previous commit As always, indentation changes are applied in a separate commit to minimize diff noise. --- desktop_version/src/main.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 93dd04ef..2d951e67 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -732,28 +732,28 @@ static enum LoopCode loop_begin(void) static void unfocused_run(void) { - Mix_Pause(-1); - Mix_PauseMusic(); + Mix_Pause(-1); + Mix_PauseMusic(); - if (!game.blackout) - { - ClearSurface(graphics.backBuffer); - graphics.bprint(5, 110, "Game paused", 196 - help.glow, 255 - help.glow, 196 - help.glow, true); - graphics.bprint(5, 120, "[click to resume]", 196 - help.glow, 255 - help.glow, 196 - help.glow, true); - graphics.bprint(5, 220, "Press M to mute in game", 164 - help.glow, 196 - help.glow, 164 - help.glow, true); - graphics.bprint(5, 230, "Press N to mute music only", 164 - help.glow, 196 - help.glow, 164 - help.glow, true); - } - graphics.render(); - gameScreen.FlipScreen(); - //We are minimised, so lets put a bit of a delay to save CPU - SDL_Delay(100); + if (!game.blackout) + { + ClearSurface(graphics.backBuffer); + graphics.bprint(5, 110, "Game paused", 196 - help.glow, 255 - help.glow, 196 - help.glow, true); + graphics.bprint(5, 120, "[click to resume]", 196 - help.glow, 255 - help.glow, 196 - help.glow, true); + graphics.bprint(5, 220, "Press M to mute in game", 164 - help.glow, 196 - help.glow, 164 - help.glow, true); + graphics.bprint(5, 230, "Press N to mute music only", 164 - help.glow, 196 - help.glow, 164 - help.glow, true); + } + graphics.render(); + gameScreen.FlipScreen(); + //We are minimised, so lets put a bit of a delay to save CPU + SDL_Delay(100); } static void focused_begin(void) { - Mix_Resume(-1); - Mix_ResumeMusic(); - game.gametimer++; + Mix_Resume(-1); + Mix_ResumeMusic(); + game.gametimer++; } static void focused_end(void)