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:
parent
932973f8fa
commit
80c5753141
4 changed files with 36 additions and 13 deletions
7
sdl.cpp
7
sdl.cpp
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue