foxygit / doom Log in
commit 8ec41dca6cad8f47c439fd16f78bc35a54de53bc
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Fri Mar 2 22:53:32 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 12:31:51 2018 +0200

    Make TXT_SetWindowTitle parameter const
---
 textscreen/txt_main.h | 2 +-
 textscreen/txt_sdl.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/textscreen/txt_main.h b/textscreen/txt_main.h
index 3cc78b30..3c98265c 100644
--- a/textscreen/txt_main.h
+++ b/textscreen/txt_main.h
@@ -180,7 +180,7 @@ void TXT_Sleep(int timeout);
 void TXT_SetInputMode(txt_input_mode_t mode);

 // Set the window title of the window containing the text mode screen
-void TXT_SetWindowTitle(char *title);
+void TXT_SetWindowTitle(const char *title);

 // Safe string copy.
 void TXT_StringCopy(char *dest, const char *src, size_t dest_len);
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index a0739042..7c8c193f 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -890,7 +890,7 @@ void TXT_SetInputMode(txt_input_mode_t mode)
     input_mode = mode;
 }

-void TXT_SetWindowTitle(char *title)
+void TXT_SetWindowTitle(const char *title)
 {
     SDL_SetWindowTitle(TXT_SDLWindow, title);
 }