shithub: choc

Download patch

ref: f9a3dac3b3fd4077a64d3a225e001223dfd79ff1
parent: f60da3ca34e7e9307170039a7e874e03e230d39a
author: Turo Lamminen <turotl@gmail.com>
date: Tue Apr 24 14:51:49 EDT 2018

doom: Make M_StringHeight parameter const

--- a/src/doom/m_menu.c
+++ b/src/doom/m_menu.c
@@ -219,7 +219,7 @@
 void M_DrawSelCell(menu_t *menu,int item);
 void M_WriteText(int x, int y, char *string);
 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);
 void M_ClearMenus (void);
@@ -1284,7 +1284,7 @@
 //
 //      Find string height from hu_font chars
 //
-int M_StringHeight(char* string)
+int M_StringHeight(const char* string)
 {
     size_t             i;
     int             h;