Make TXT_SetWindowTitle parameter const

This commit is contained in:
Turo Lamminen 2018-03-02 22:53:32 +02:00
parent 47091d24fb
commit 8ec41dca6c
2 changed files with 2 additions and 2 deletions

View file

@ -180,7 +180,7 @@ void TXT_Sleep(int timeout);
void TXT_SetInputMode(txt_input_mode_t mode); void TXT_SetInputMode(txt_input_mode_t mode);
// Set the window title of the window containing the text mode screen // 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. // Safe string copy.
void TXT_StringCopy(char *dest, const char *src, size_t dest_len); void TXT_StringCopy(char *dest, const char *src, size_t dest_len);

View file

@ -890,7 +890,7 @@ void TXT_SetInputMode(txt_input_mode_t mode)
input_mode = mode; input_mode = mode;
} }
void TXT_SetWindowTitle(char *title) void TXT_SetWindowTitle(const char *title)
{ {
SDL_SetWindowTitle(TXT_SDLWindow, title); SDL_SetWindowTitle(TXT_SDLWindow, title);
} }