summaryrefslogtreecommitdiff
path: root/textscreen/txt_main.c
diff options
context:
space:
mode:
authorSimon Howard2007-05-24 14:29:08 +0000
committerSimon Howard2007-05-24 14:29:08 +0000
commit2e3e45cb9b6094d2e8af2a43512f33d813ae454b (patch)
tree85d0288a696b7ea22392ab507090bf00fe01cc15 /textscreen/txt_main.c
parentae8b80991ed1ad827b193c0b2552e3ac63a1baa4 (diff)
downloadchocolate-doom-2e3e45cb9b6094d2e8af2a43512f33d813ae454b.tar.gz
chocolate-doom-2e3e45cb9b6094d2e8af2a43512f33d813ae454b.tar.bz2
chocolate-doom-2e3e45cb9b6094d2e8af2a43512f33d813ae454b.zip
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
Diffstat (limited to 'textscreen/txt_main.c')
-rw-r--r--textscreen/txt_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/textscreen/txt_main.c b/textscreen/txt_main.c
index edccd704..f184ce0f 100644
--- a/textscreen/txt_main.c
+++ b/textscreen/txt_main.c
@@ -518,3 +518,8 @@ void TXT_EnableKeyMapping(int enable)
key_mapping = enable;
}
+void TXT_SetWindowTitle(char *title)
+{
+ SDL_WM_SetCaption(title, NULL);
+}
+