shithub: choc

Download patch

ref: 8c8cc817d588e96dfb6b7139ada0ad58905d0152
parent: bba32942c4cd24ed08ab56eebdc7dbe57b68a33d
author: Turo Lamminen <turotl@gmail.com>
date: Tue May 15 16:04:09 EDT 2018

strife: Make M_StringHeight parameter const

--- a/src/strife/m_menu.c
+++ b/src/strife/m_menu.c
@@ -207,7 +207,7 @@
 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 @@
 //
 //      Find string height from hu_font chars
 //
-int M_StringHeight(char* string)
+int M_StringHeight(const char *string)
 {
     size_t             i;
     int             h;