diff options
author | Simon Howard | 2006-05-18 19:48:03 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-18 19:48:03 +0000 |
commit | aaf96ab501f948df13f78fdf072379884d2d3f2e (patch) | |
tree | f8326c1dd0f741b8b3184c2828efa1f48e47342f /textscreen/txt_window.c | |
parent | f6e8d4c46e9ffebe43a3ea84df3e544417266091 (diff) | |
download | chocolate-doom-aaf96ab501f948df13f78fdf072379884d2d3f2e.tar.gz chocolate-doom-aaf96ab501f948df13f78fdf072379884d2d3f2e.tar.bz2 chocolate-doom-aaf96ab501f948df13f78fdf072379884d2d3f2e.zip |
Add TXT_SetDesktopTitle()
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 482
Diffstat (limited to 'textscreen/txt_window.c')
-rw-r--r-- | textscreen/txt_window.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c index ce58aaa3..cc467192 100644 --- a/textscreen/txt_window.c +++ b/textscreen/txt_window.c @@ -31,6 +31,7 @@ #define MAXWINDOWS 128 +static char *desktop_title; static txt_window_t *all_windows[MAXWINDOWS]; static int num_windows = 0; @@ -152,11 +153,23 @@ static void DrawWindow(txt_window_t *window) TXT_DrawSeparator(window_x, window_y + 2 + window->num_widgets, window_w); } +void TXT_SetDesktopTitle(char *title) +{ + free(desktop_title); + desktop_title = strdup(title); +} + void TXT_DrawAllWindows(void) { int i; + char *title; + + if (desktop_title == NULL) + title = ""; + else + title = desktop_title; - TXT_DrawDesktop("Not Chocolate Doom setup"); + TXT_DrawDesktop(title); for (i=0; i<num_windows; ++i) { |