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); }