aboutsummaryrefslogtreecommitdiff
path: root/common/main.cpp
diff options
context:
space:
mode:
authorMax Horn2002-11-14 14:20:41 +0000
committerMax Horn2002-11-14 14:20:41 +0000
commit75f3f4aff257c5bfe669a2a660b19ade7f36a851 (patch)
tree75afbea33dbac44b9b04167af12958847f8657c4 /common/main.cpp
parent895cbec8916bb2a7b9838d5724443d4b61f621bb (diff)
downloadscummvm-rg350-75f3f4aff257c5bfe669a2a660b19ade7f36a851.tar.gz
scummvm-rg350-75f3f4aff257c5bfe669a2a660b19ade7f36a851.tar.bz2
scummvm-rg350-75f3f4aff257c5bfe669a2a660b19ade7f36a851.zip
set default window title 'ScummVM' while launcher is up
svn-id: r5549
Diffstat (limited to 'common/main.cpp')
-rw-r--r--common/main.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/common/main.cpp b/common/main.cpp
index fa76617bc1..1df412a552 100644
--- a/common/main.cpp
+++ b/common/main.cpp
@@ -143,6 +143,7 @@ static void launcherDialog(GameDetector &detector, OSystem *system)
int main(int argc, char *argv[])
{
GameDetector detector;
+ OSystem::Property prop;
#if defined(UNIX)
/* On Unix, do a quick endian / alignement check before starting */
@@ -175,8 +176,12 @@ int main(int argc, char *argv[])
// Create the system object
OSystem *system = detector.createSystem();
+ // Set initial window caption
+ prop.caption = "ScummVM";
+ system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop);
+
+
// Create the GUI manager
- // TODO - move this up for the launcher dialog?
g_gui = new NewGui(system);
// Unless a game was specified, show the launcher dialog
@@ -189,8 +194,7 @@ int main(int argc, char *argv[])
return (-1);
}
- // Set the window caption (for OSystems that support it)
- OSystem::Property prop;
+ // Set the window caption to the game name
prop.caption = detector.getGameName().c_str();
system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop);