commit b22df6a13aedecce1818c41eb38b265b066f3eda
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Wed Dec 10 00:00:55 2008 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Wed Dec 10 00:00:55 2008 +0000
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();