Add TXT_SetWindowTitle function to wrap SDL_WM_SetCaption, so that

txt_desktop.c doesn't need to call SDL functions directly.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 885
This commit is contained in:
Simon Howard 2007-05-24 14:29:08 +00:00
parent ae8b80991e
commit 2e3e45cb9b
3 changed files with 10 additions and 1 deletions

View file

@ -110,7 +110,7 @@ void TXT_SetDesktopTitle(char *title)
{
free(desktop_title);
desktop_title = strdup(title);
SDL_WM_SetCaption(title, NULL);
TXT_SetWindowTitle(title);
}
void TXT_DrawDesktop(void)

View file

@ -518,3 +518,8 @@ void TXT_EnableKeyMapping(int enable)
key_mapping = enable;
}
void TXT_SetWindowTitle(char *title)
{
SDL_WM_SetCaption(title, NULL);
}

View file

@ -109,5 +109,9 @@ void TXT_Sleep(int timeout);
void TXT_EnableKeyMapping(int enable);
// Set the window title of the window containing the text mode screen
void TXT_SetWindowTitle(char *title);
#endif /* #ifndef TXT_MAIN_H */