shithub: choc

Download patch

ref: 4b988f2813bf63bd8a5838454a4f05f3ae9572a5
parent: 5f92a20c1c21e5ae99ba720fd7e1c38914cbf3ac
author: Turo Lamminen <[email protected]>
date: Sat Jul 28 11:35:56 EDT 2018

doom: Make M_StringWidth parameter const

--- a/src/doom/m_menu.c
+++ b/src/doom/m_menu.c
@@ -215,7 +215,7 @@
 static void M_SetupNextMenu(menu_t *menudef);
 static void M_DrawThermo(int x,int y,int thermWidth,int thermDot);
 static void M_WriteText(int x, int y, const char *string);
-static int  M_StringWidth(char *string);
+static int  M_StringWidth(const char *string);
 static int  M_StringHeight(const char *string);
 static void M_StartMessage(const char *string, void *routine, boolean input);
 static void M_ClearMenus (void);
@@ -1229,7 +1229,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;