shithub: choc

Download patch

ref: 34edaa72f785425c0ca44eb430dd75c3ddc654b3
parent: b64575b41b5a69a753426ed6f0421110b134dcb2
author: Turo Lamminen <[email protected]>
date: Sat Mar 31 12:44:30 EDT 2018

Make I_SetWindowTitleHR parameter const

--- a/src/i_videohr.c
+++ b/src/i_videohr.c
@@ -32,7 +32,7 @@
 
 static SDL_Window *hr_screen = NULL;
 static SDL_Surface *hr_surface = NULL;
-static char *window_title = "";
+static const char *window_title = "";
 
 boolean I_SetVideoModeHR(void)
 {
@@ -64,7 +64,7 @@
     return true;
 }
 
-void I_SetWindowTitleHR(char *title)
+void I_SetWindowTitleHR(const char *title)
 {
     window_title = title;
 }
--- a/src/i_videohr.h
+++ b/src/i_videohr.h
@@ -21,7 +21,7 @@
 
 boolean I_SetVideoModeHR(void);
 void I_UnsetVideoModeHR(void);
-void I_SetWindowTitleHR(char *title);
+void I_SetWindowTitleHR(const char *title);
 void I_ClearScreenHR(void);
 void I_SlamBlockHR(int x, int y, int w, int h, const byte *src);
 void I_SlamHR(const byte *buffer);