From b22df6a13aedecce1818c41eb38b265b066f3eda Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 10 Dec 2008 00:00:55 +0000 Subject: Fix window icon/title under Windows XP Luna theme. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1415 --- src/i_video.c | 11 ++++++----- 1 file 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(); -- cgit v1.2.3