summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2008-12-10 00:00:55 +0000
committerSimon Howard2008-12-10 00:00:55 +0000
commitb22df6a13aedecce1818c41eb38b265b066f3eda (patch)
tree221e8e25eb3d0fab31d2c89a22627ac210f4f1e9
parentb00b65538a1f7a04fdd46d7c193a7c59733fde9b (diff)
downloadchocolate-doom-b22df6a13aedecce1818c41eb38b265b066f3eda.tar.gz
chocolate-doom-b22df6a13aedecce1818c41eb38b265b066f3eda.tar.bz2
chocolate-doom-b22df6a13aedecce1818c41eb38b265b066f3eda.zip
Fix window icon/title under Windows XP Luna theme.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1415
-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();