From 43630ab7969fa26cb0a3e2773e7266f2f9647867 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Fri, 9 Jan 2009 20:35:42 -0700 Subject: Fixed color setup dialog (which was uninitialized in older commits when the setup button was created ) Signed-off-by: Ira Rice --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index efb14deb..5f508c52 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -734,6 +734,9 @@ int main(int argc, char *argv[]) unsigned int oldstate = !state; // We start with a status change. + // Needs to be created in main, as the updater uses it + textColour = new Colour(); + Game *game = NULL; Window *currentDialog = NULL; Image *login_wallpaper = NULL; @@ -794,9 +797,6 @@ int main(int argc, char *argv[]) if (!login_wallpaper) logger->log(_("Couldn't load %s as wallpaper"), wallpaperName.c_str()); - // Needs to be created in main, as the updater uses it - textColour = new Colour(); - while (state != EXIT_STATE) { // Handle SDL events -- cgit v1.2.3-70-g09d2