From c4409487fdb2822309b9d8cf79bcd7d3895b8390 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 22 Apr 2020 02:36:36 +0200 Subject: Const correct (most) strings At least those cases that are reported by gcc and/or clang. --- src/opengl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/opengl.h') diff --git a/src/opengl.h b/src/opengl.h index c5262be..9beb239 100644 --- a/src/opengl.h +++ b/src/opengl.h @@ -33,9 +33,9 @@ void ThisFramesRenderingHasFinished(); void D3D_SkyPolygon_Output(POLYHEADER *inputPolyPtr, RENDERVERTEX *renderVerticesPtr); void D3D_DrawBackdrop(); void D3D_FadeDownScreen(int brightness, int colour); -void RenderString(char *stringPtr, int x, int y, int colour); -void RenderStringCentred(char *stringPtr, int centreX, int y, int colour); -void RenderStringVertically(char *stringPtr, int centreX, int bottomY, int colour); +void RenderString(const char *stringPtr, int x, int y, int colour); +void RenderStringCentred(const char *stringPtr, int centreX, int y, int colour); +void RenderStringVertically(const char *stringPtr, int centreX, int bottomY, int colour); void D3D_DecalSystem_Setup(); void D3D_DecalSystem_End(); void SecondFlushD3DZBuffer(); -- cgit v1.3