foxygit / doom Log in
commit 00311e89f5bc707c333c38b5f1850d2f2a35e076
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Apr 24 20:14:32 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Apr 24 20:16:01 2018 +0300

    heretic: Make MN_TextBWidth parameter const
---
 src/heretic/doomdef.h | 2 +-
 src/heretic/mn_menu.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 563832ef..12bb8af8 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -821,7 +821,7 @@ void MN_Drawer(void);
 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"

diff --git a/src/heretic/mn_menu.c b/src/heretic/mn_menu.c
index f527e4a7..2ff11c70 100644
--- a/src/heretic/mn_menu.c
+++ b/src/heretic/mn_menu.c
@@ -416,7 +416,7 @@ void MN_DrTextB(const char *text, int x, int y)
 //
 //---------------------------------------------------------------------------

-int MN_TextBWidth(char *text)
+int MN_TextBWidth(const char *text)
 {
     char c;
     int width;