ref: 8ec41dca6cad8f47c439fd16f78bc35a54de53bc
parent: 47091d24fbe24e4ccbb10df225e61316d9c229ea
author: Turo Lamminen <[email protected]>
date: Fri Mar 2 17:53:32 EST 2018
Make TXT_SetWindowTitle parameter const
--- a/textscreen/txt_main.h
+++ b/textscreen/txt_main.h
@@ -180,7 +180,7 @@
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);
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -890,7 +890,7 @@
input_mode = mode;
}
-void TXT_SetWindowTitle(char *title)
+void TXT_SetWindowTitle(const char *title)
{
SDL_SetWindowTitle(TXT_SDLWindow, title);
}