foxygit / doom Log in
commit 8c8cc817d588e96dfb6b7139ada0ad58905d0152
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue May 15 20:04:09 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue May 15 20:04:09 2018 +0300

    strife: Make M_StringHeight parameter const
---
 src/strife/m_menu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/strife/m_menu.c b/src/strife/m_menu.c
index 18b38115..faed605a 100644
--- a/src/strife/m_menu.c
+++ b/src/strife/m_menu.c
@@ -207,7 +207,7 @@ void M_DrawThermo(int x,int y,int thermWidth,int thermDot);
 void M_DrawEmptyCell(menu_t *menu,int item);
 void M_DrawSelCell(menu_t *menu,int item);
 int  M_StringWidth(char *string);
-int  M_StringHeight(char *string);
+int  M_StringHeight(const char *string);
 void M_StartMessage(char *string,void *routine,boolean input);
 void M_StopMessage(void);

@@ -1511,7 +1511,7 @@ int M_StringWidth(char* string)
 //
 //      Find string height from hu_font chars
 //
-int M_StringHeight(char* string)
+int M_StringHeight(const char *string)
 {
     size_t             i;
     int             h;