diff options
| author | Ludvig Strigeus | 2001-10-11 11:49:51 +0000 |
|---|---|---|
| committer | Ludvig Strigeus | 2001-10-11 11:49:51 +0000 |
| commit | 8f72d6f82caf7ac0de7c969d665213802db7fdbd (patch) | |
| tree | 477af5f788a7e438bb091b121c705a2f3e0c9481 /sdl.cpp | |
| parent | d18d8bdb530a924e7acea399bf57599a26896895 (diff) | |
| download | scummvm-rg350-8f72d6f82caf7ac0de7c969d665213802db7fdbd.tar.gz scummvm-rg350-8f72d6f82caf7ac0de7c969d665213802db7fdbd.tar.bz2 scummvm-rg350-8f72d6f82caf7ac0de7c969d665213802db7fdbd.zip | |
Determine caption from file name.
svn-id: r3425
Diffstat (limited to 'sdl.cpp')
| -rw-r--r-- | sdl.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -17,6 +17,9 @@ * * Change Log: * $Log$ + * Revision 1.7 2001/10/11 11:49:51 strigeus + * Determine caption from file name. + * * Revision 1.6 2001/10/11 10:15:58 strigeus * no SDL cursor * @@ -311,7 +314,12 @@ void initGraphics(Scumm *s) { /* Clean up on exit */ atexit(SDL_Quit); - SDL_WM_SetCaption("ScummVM - Monkey Island 2: LeChuck's revenge","ScummVM - Monkey Island 2: LeChuck's revenge"); + char buf[512], *gameName; + + sprintf(buf, "ScummVM - %s", gameName = s->getGameName()); + free(gameName); + + SDL_WM_SetCaption(buf,buf); SDL_ShowCursor(SDL_DISABLE); #if !defined(SCALEUP_2x2) |
