From: res Date: Tue, 18 Dec 2007 23:34:54 +0000 (+0000) Subject: Marked some gl_draw.c tables as "static const" X-Git-Tag: xonotic-v0.1.0preview~2668 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=ad781d4d6c6c21cb1ba82d6b65594bb79c046596 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 --- 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?