foxygit / doom Log in
commit f57c4033db3b9d02574615d03a14c37d90d2839c
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Aug 7 18:30:57 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Aug 7 18:45:11 2018 +0300

    hexen: Make MN_TextAWidth parameter const
---
 src/hexen/h2def.h   | 2 +-
 src/hexen/mn_menu.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hexen/h2def.h b/src/hexen/h2def.h
index 319c5fe0..c401d448 100644
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -1061,7 +1061,7 @@ void MN_Ticker(void);
 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);

diff --git a/src/hexen/mn_menu.c b/src/hexen/mn_menu.c
index bb7eefad..9f9086e2 100644
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -393,7 +393,7 @@ void MN_DrTextAYellow(const char *text, int x, int y)
 //
 //---------------------------------------------------------------------------

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