From: Ricardo Cruz Date: Sun, 14 Mar 2004 02:37:58 +0000 (+0000) Subject: Just changed seticon() position to make icons putted right away by the wm (textures... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c1d4ba2755b4a3cafb1a832e94e6c3008b399c33;p=supertux.git Just changed seticon() position to make icons putted right away by the wm (textures load can take a few secs in some systems). SVN-Revision: 210 --- diff --git a/src/setup.c b/src/setup.c index 336ae92d9..a6f59843e 100644 --- a/src/setup.c +++ b/src/setup.c @@ -456,6 +456,14 @@ void st_general_setup(void) srand(SDL_GetTicks()); + /* Set icon image: */ + + seticon(); + + /* Unicode needed for input handling: */ + + SDL_EnableUNICODE(1); + /* Load global images: */ text_load(&black_text,DATA_PREFIX "/images/status/letters-black.png", TEXT_TEXT, 16,18); @@ -474,11 +482,6 @@ void st_general_setup(void) texture_load(&arrow_left, DATA_PREFIX "/images/icons/left.png", USE_ALPHA); texture_load(&arrow_right, DATA_PREFIX "/images/icons/right.png", USE_ALPHA); - /* Set icon image: */ - - seticon(); - SDL_EnableUNICODE(1); - } void st_general_free(void)