shithub: choc

Download patch

ref: 00311e89f5bc707c333c38b5f1850d2f2a35e076
parent: fe5173fde94c26c498266ad89b21a985aea7900f
author: Turo Lamminen <turotl@gmail.com>
date: Tue Apr 24 16:14:32 EDT 2018

heretic: Make MN_TextBWidth parameter const

--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -821,7 +821,7 @@
 void MN_DrTextA(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);
 
 #include "sounds.h"
 
--- a/src/heretic/mn_menu.c
+++ b/src/heretic/mn_menu.c
@@ -416,7 +416,7 @@
 //
 //---------------------------------------------------------------------------
 
-int MN_TextBWidth(char *text)
+int MN_TextBWidth(const char *text)
 {
     char c;
     int width;