From 75f3f4aff257c5bfe669a2a660b19ade7f36a851 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 14 Nov 2002 14:20:41 +0000 Subject: set default window title 'ScummVM' while launcher is up svn-id: r5549 --- common/main.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'common/main.cpp') 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); -- cgit v1.2.3