foxygit / doom Log in
commit 34edaa72f785425c0ca44eb430dd75c3ddc654b3
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Mar 31 16:44:30 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Mar 31 16:44:30 2018 +0300

    Make I_SetWindowTitleHR parameter const
---
 src/i_videohr.c | 4 ++--
 src/i_videohr.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/i_videohr.c b/src/i_videohr.c
index d5c25f79..08e23033 100644
--- 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 @@ boolean I_SetVideoModeHR(void)
     return true;
 }

-void I_SetWindowTitleHR(char *title)
+void I_SetWindowTitleHR(const char *title)
 {
     window_title = title;
 }
diff --git a/src/i_videohr.h b/src/i_videohr.h
index cbda2ba0..d0a0dca5 100644
--- 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);