From 9de326220fe40712f8d5196259cffdb8024e57eb Mon Sep 17 00:00:00 2001 From: tomaz Date: Wed, 13 Jul 2005 15:10:09 +0000 Subject: [PATCH] Fixed a bug by me regarding the filesize of the embedded font. Added FONT_FILESIZE define to avoid this misstake in the future. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5529 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_draw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gl_draw.c b/gl_draw.c index d1dbbf4a..6e665463 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -30,6 +30,7 @@ static rtexture_t *char_texture; //============================================================================= /* Support Routines */ +#define FONT_FILESIZE 13468 #define MAX_CACHED_PICS 256 #define CACHEPICHASHSIZE 256 static cachepic_t *cachepichash[CACHEPICHASHSIZE]; @@ -38,7 +39,7 @@ static int numcachepics; static rtexturepool_t *drawtexturepool; -static qbyte concharimage[13468] = +static qbyte concharimage[FONT_FILESIZE] = { #include "lhfont.h" }; @@ -51,7 +52,7 @@ static rtexture_t *draw_generateconchars(void) qbyte buffer[65536][4], *data = NULL; double random; - fs_filesize = 13396; + fs_filesize = FONT_FILESIZE; data = LoadTGA (concharimage, 256, 256); fs_filesize = -1; // Gold numbers -- 2.39.2