summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i_video.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/i_video.c b/src/i_video.c
index a4129aba..0ed4d716 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1481,6 +1481,12 @@ void I_InitGraphics(void)
}
}
+ // Set up title and icon. Windows cares about the ordering; this
+ // has to be done before the call to SDL_SetVideoMode.
+
+ I_SetWindowCaption();
+ I_SetWindowIcon();
+
// Set the video mode.
flags |= SDL_SWSURFACE | SDL_HWPALETTE | SDL_DOUBLEBUF;
@@ -1518,11 +1524,6 @@ void I_InitGraphics(void)
I_SetPalette(doompal);
SDL_SetColors(screen, palette, 0, 256);
- // Setup title and icon
-
- I_SetWindowCaption();
- I_SetWindowIcon();
-
CreateCursors();
UpdateFocus();