From ad781d4d6c6c21cb1ba82d6b65594bb79c046596 Mon Sep 17 00:00:00 2001 From: res Date: Tue, 18 Dec 2007 23:34:54 +0000 Subject: [PATCH] Marked some gl_draw.c tables as "static const" git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7823 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_draw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gl_draw.c b/gl_draw.c index 9345985b..bee392ce 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -42,7 +42,7 @@ static int numcachepics; static rtexturepool_t *drawtexturepool; -static unsigned char concharimage[FONT_FILESIZE] = +static const unsigned char concharimage[FONT_FILESIZE] = { #include "lhfont.h" }; @@ -118,7 +118,7 @@ typedef struct embeddedpic_s } embeddedpic_t; -static embeddedpic_t embeddedpics[] = +static const embeddedpic_t embeddedpics[] = { { "gfx/prydoncursor001", 16, 16, @@ -388,7 +388,7 @@ static embeddedpic_t embeddedpics[] = static rtexture_t *draw_generatepic(const char *name) { - embeddedpic_t *p; + const embeddedpic_t *p; for (p = embeddedpics;p->name;p++) if (!strcmp(name, p->name)) return R_LoadTexture2D(drawtexturepool, p->name, p->width, p->height, (const unsigned char *)p->pixels, TEXTYPE_PALETTE, TEXF_ALPHA | TEXF_PRECACHE, palette_bgra_embeddedpic); @@ -841,7 +841,7 @@ void DrawQ_Fill(float x, float y, float width, float height, float red, float gr } // color tag printing -static vec4_t string_colors[] = +static const vec4_t string_colors[] = { // Quake3 colors // LordHavoc: why on earth is cyan before magenta in Quake3? -- 2.39.2