summaryrefslogtreecommitdiff
path: root/src/setup/mainmenu.c
diff options
context:
space:
mode:
authorSimon Howard2013-09-20 23:50:44 +0000
committerSimon Howard2013-09-20 23:50:44 +0000
commit5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce (patch)
treeac7c18a973944e298611b8ba3a9321812fe6c7a3 /src/setup/mainmenu.c
parentf1d79f495d4ad394c87d7fc11132c120736658fa (diff)
downloadchocolate-doom-5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce.tar.gz
chocolate-doom-5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce.tar.bz2
chocolate-doom-5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce.zip
Set setup tool title so that it it shows the name of the correct game
being configured, not just always "Chocolate Doom". Subversion-branch: /branches/v2-branch Subversion-revision: 2669
Diffstat (limited to 'src/setup/mainmenu.c')
-rw-r--r--src/setup/mainmenu.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/setup/mainmenu.c b/src/setup/mainmenu.c
index 74e77fd5..8e5ebdad 100644
--- a/src/setup/mainmenu.c
+++ b/src/setup/mainmenu.c
@@ -31,6 +31,8 @@
#include "m_argv.h"
#include "m_config.h"
#include "m_controls.h"
+#include "m_misc.h"
+#include "z_zone.h"
#include "setup_icon.c"
#include "mode.h"
@@ -316,6 +318,20 @@ static void SetIcon(void)
free(mask);
}
+static void SetWindowTitle(void)
+{
+ char *title;
+
+ title = M_StringReplace(PACKAGE_NAME " Setup ver " PACKAGE_VERSION,
+ "Doom",
+ GetGameTitle());
+
+
+ TXT_SetDesktopTitle(title);
+
+ Z_Free(title);
+}
+
// Initialize the textscreen library.
static void InitTextscreen(void)
@@ -328,8 +344,8 @@ static void InitTextscreen(void)
exit(-1);
}
- TXT_SetDesktopTitle(PACKAGE_NAME " Setup ver " PACKAGE_VERSION);
SetIcon();
+ SetWindowTitle();
}
// Restart the textscreen library. Used when the video_driver variable
@@ -354,6 +370,7 @@ static void RunGUI(void)
static void MissionSet(void)
{
+ SetWindowTitle();
InitConfig();
MainMenu();
}