ref: 8edd2c73b5054691dd111a6106aaea98164077cd
parent: 8c8cc817d588e96dfb6b7139ada0ad58905d0152
author: Turo Lamminen <[email protected]>
date: Tue May 15 16:04:40 EDT 2018
strife: Make M_StringWidth parameter const
--- a/src/strife/m_menu.c
+++ b/src/strife/m_menu.c
@@ -206,7 +206,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_StringWidth(const char *string);
int M_StringHeight(const char *string);
void M_StartMessage(char *string,void *routine,boolean input);
void M_StopMessage(void);
@@ -1488,7 +1488,7 @@
//
// Find string width from hu_font chars
//
-int M_StringWidth(char* string)
+int M_StringWidth(const char *string)
{
size_t i;
int w = 0;