https://github.com/libsdl-org/Maelstrom/commit/b85981bfdaf2c589e6c5ce053f170f102a294df4
From b85981bfdaf2c589e6c5ce053f170f102a294df4 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 27 Oct 2011 20:23:48 -0400
Subject: [PATCH] Fixed bug drawing the next wave after the bonus screen.
---
netlogic/game.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/netlogic/game.cpp b/netlogic/game.cpp
index 2b122ccd..115056af 100644
--- a/netlogic/game.cpp
+++ b/netlogic/game.cpp
@@ -148,6 +148,9 @@ void NewGame(void)
while (gGameOn) {
ui->Draw();
+ /* -- In case we were faded out in DoBonus() */
+ screen->FadeIn();
+
/* Timing handling -- Delay the FRAME_DELAY */
if ( ! gNoDelay ) {
Uint32 ticks;
@@ -734,12 +737,8 @@ GamePanelDelegate::DoBonus()
m_showingBonus = false;
+ /* Fade out and prepare for drawing the next wave */
screen->FadeOut();
- ui->Draw();
- screen->FadeIn();
-
- /* Need to clear one more time since we're about to draw */
- /* FIXME: This doesn't work */
screen->Clear();
} /* -- DoBonus */