Maelstrom: Fixed white screen at fullscreen startup on Mac OS X

From 5d3e9bc66b8967aecfd8ba5976b194e9cd23ac00 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 22 Oct 2011 02:09:22 -0400
Subject: [PATCH] Fixed white screen at fullscreen startup on Mac OS X

---
 init.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/init.cpp b/init.cpp
index 031d7624..bb618a40 100644
--- a/init.cpp
+++ b/init.cpp
@@ -69,6 +69,7 @@ void DoSplash(void)
 		error("Can't load Ambrosia splash title! (ID=%d)\n", 999);
 		return;
         }
+	screen->Clear();
 	screen->QueueBlit(SCREEN_WIDTH/2-screen->GetImageWidth(splash)/2,
 			  SCREEN_HEIGHT/2-screen->GetImageHeight(splash)/2, splash, NOCLIP);
 	screen->Update();
@@ -763,6 +764,8 @@ int DoInitializations(Uint32 video_flags)
 		return(-1);
 	}
 	screen->SetCaption("Maelstrom");
+	screen->Clear();
+	screen->Update();
 	atexit(CleanUp);		// Need to reset this under X11 DGA
 	SDL_FreeSurface(icon);
 
@@ -807,8 +810,6 @@ int DoInitializations(Uint32 video_flags)
 	screen->ClipBlit(&gClipRect);
 
 	/* Do the Ambrosia Splash screen */
-	screen->Clear();
-	screen->Update();
 	screen->Fade();
 	DoSplash();
 	screen->Fade();