shithub: choc

Download patch

ref: cd812fce507df1f5df15e226cf5e08e1e24197c9
parent: b0cfaad6503c7eed272ac766573e697597c335d2
author: Turo Lamminen <turotl@gmail.com>
date: Tue Aug 7 14:32:41 EDT 2018

hexen: Make MN_TextBWidth parameter const

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