diff options
author | Jonathan Gray | 2003-11-07 14:00:33 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-11-07 14:00:33 +0000 |
commit | dc63e3882bedd39cab8b8e4e4b432bab119925b0 (patch) | |
tree | e919f534c2b5e85e87f384ba4725e6299d6d61b1 | |
parent | 3433769bea8f352a812c2427bedd60cd2f6bf37d (diff) | |
download | scummvm-rg350-dc63e3882bedd39cab8b8e4e4b432bab119925b0.tar.gz scummvm-rg350-dc63e3882bedd39cab8b8e4e4b432bab119925b0.tar.bz2 scummvm-rg350-dc63e3882bedd39cab8b8e4e4b432bab119925b0.zip |
adjust for recent string c_str changes so title is always shown again. Fixes bug #837868 probably not the best way of doing it but it'll do
svn-id: r11188
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp index 20a7d80ebd..bfc54b2106 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -259,11 +259,11 @@ int main(int argc, char *argv[]) { // Set the window caption to the game name prop.caption = ConfMan.get("description", detector._targetName).c_str(); - if (prop.caption == NULL) + if (strnlen(prop.caption, 3) == 0) prop.caption = detector._game.description; - if (prop.caption == NULL) + if (strnlen(prop.caption, 3) == 0) prop.caption = detector._targetName.c_str(); - if (prop.caption != NULL) + if (strnlen(prop.caption, 3) != 0) system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop); // FIXME: It seem not logical that we first might set the gfx mode to |