ref: 83d0f369df6d5582efad2c4a40454b114abe9a9e
parent: 8ec41dca6cad8f47c439fd16f78bc35a54de53bc
author: Turo Lamminen <[email protected]>
date: Fri Mar 2 19:09:33 EST 2018
Make TXT_SetDesktopTitle parameter const
--- a/textscreen/txt_desktop.c
+++ b/textscreen/txt_desktop.c
@@ -220,7 +220,7 @@
TXT_DrawString("=Help ");
}
-void TXT_SetDesktopTitle(char *title)
+void TXT_SetDesktopTitle(const char *title)
{
free(desktop_title);
desktop_title = strdup(title);
--- a/textscreen/txt_desktop.h
+++ b/textscreen/txt_desktop.h
@@ -39,7 +39,7 @@
* @param title The title to display (UTF-8 format).
*/
-void TXT_SetDesktopTitle(char *title);
+void TXT_SetDesktopTitle(const char *title);
/**
* Exit the currently-running main loop and return from the