ref: aed280e13947099544f584077e9cd893ddeaf9e5
parent: b22df6a13aedecce1818c41eb38b265b066f3eda
author: Simon Howard <[email protected]>
date: Tue Dec 9 19:42:49 EST 2008
Set icon before calling TXT_Init, for setup and ENDOOM screens. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1416
--- a/setup/mainmenu.c
+++ b/setup/mainmenu.c
@@ -193,6 +193,9 @@
{
SetDisplayDriver();
+ TXT_SetDesktopTitle(PACKAGE_NAME " Setup ver " PACKAGE_VERSION);
+ SetIcon();
+
if (!TXT_Init())
{
fprintf(stderr, "Failed to initialise GUI\n");
@@ -199,9 +202,6 @@
exit(-1);
}
- TXT_SetDesktopTitle(PACKAGE_NAME " Setup ver " PACKAGE_VERSION);
- SetIcon();
-
MainMenu();
TXT_GUIMainLoop();
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -139,15 +139,15 @@
endoom_data = W_CacheLumpName(DEH_String("ENDOOM"), PU_STATIC);
- // Set up text mode screen
-
- TXT_Init();
-
// Make sure the new window has the right title and icon
I_SetWindowCaption();
I_SetWindowIcon();
+ // Set up text mode screen
+
+ TXT_Init();
+
// Write the data to the screen memory
screendata = TXT_GetScreenData();