Fixed the 'window title' problem for the SDL and X11 ports. Other 'porters' should fix their front-ends (sorry :-) ).

svn-id: r3776
This commit is contained in:
Lionel Ulmer 2002-03-17 13:00:11 +00:00
parent 932973f8fa
commit 80c5753141
4 changed files with 36 additions and 13 deletions

View file

@ -844,6 +844,13 @@ void initGraphics(Scumm *s, bool fullScreen, unsigned int scaleFactor) {
);
}
void setWindowName(Scumm *s) {
char buf[512], *gameName;
sprintf(buf, "ScummVM - %s", gameName = s->getGameName());
free(gameName);
SDL_WM_SetCaption(buf,buf);
}
#if !defined(__APPLE__)
#undef main