shithub: choc

Download patch

ref: f57c4033db3b9d02574615d03a14c37d90d2839c
parent: 79d1b19e6148ba3bbb570353d1aeff71bb2dca52
author: Turo Lamminen <turotl@gmail.com>
date: Tue Aug 7 14:30:57 EDT 2018

hexen: Make MN_TextAWidth parameter const

--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -1061,7 +1061,7 @@
 void MN_Drawer(void);
 void MN_DrTextA(const char *text, int x, int y);
 void MN_DrTextAYellow(const char *text, int x, int y);
-int MN_TextAWidth(char *text);
+int MN_TextAWidth(const char *text);
 void MN_DrTextB(char *text, int x, int y);
 int MN_TextBWidth(char *text);
 
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -393,7 +393,7 @@
 //
 //---------------------------------------------------------------------------
 
-int MN_TextAWidth(char *text)
+int MN_TextAWidth(const char *text)
 {
     char c;
     int width;