From: cloudwalk Date: Sun, 17 May 2020 21:02:20 +0000 (+0000) Subject: Silence some noisy font-related prints. Make them debug prints. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=99de0334ecd965057bacede95aabe9d2200a36a8;p=xonotic%2Fdarkplaces.git Silence some noisy font-related prints. Make them debug prints. From Mario. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12531 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_draw.c b/gl_draw.c index b0480a6b..21871af5 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -133,7 +133,7 @@ cachepic_t *Draw_CachePic_Flags(const char *path, unsigned int cachepicflags) if (numcachepics == MAX_CACHED_PICS) { - Con_Printf ("Draw_CachePic(\"%s\"): frame %i: numcachepics == MAX_CACHED_PICS\n", path, draw_frame); + Con_DPrintf ("Draw_CachePic(\"%s\"): frame %i: numcachepics == MAX_CACHED_PICS\n", path, draw_frame); // FIXME: support NULL in callers? return cachepics; // return the first one } @@ -270,17 +270,17 @@ cachepic_t *Draw_NewPic(const char *picname, int width, int height, unsigned cha pic->lastusedframe = draw_frame; return pic; } - Con_Printf("Draw_NewPic(\"%s\"): frame %i: reloading pic because flags/size changed\n", picname, draw_frame); + Con_DPrintf("Draw_NewPic(\"%s\"): frame %i: reloading pic because flags/size changed\n", picname, draw_frame); } else { if (numcachepics == MAX_CACHED_PICS) { - Con_Printf ("Draw_NewPic(\"%s\"): frame %i: numcachepics == MAX_CACHED_PICS\n", picname, draw_frame); + Con_DPrintf ("Draw_NewPic(\"%s\"): frame %i: numcachepics == MAX_CACHED_PICS\n", picname, draw_frame); // FIXME: support NULL in callers? return cachepics; // return the first one } - Con_Printf("Draw_NewPic(\"%s\"): frame %i: creating new cachepic\n", picname, draw_frame); + Con_DPrintf("Draw_NewPic(\"%s\"): frame %i: creating new cachepic\n", picname, draw_frame); pic = cachepics + (numcachepics++); memset(pic, 0, sizeof(*pic)); strlcpy (pic->name, picname, sizeof(pic->name)); @@ -437,7 +437,7 @@ void LoadFont(qboolean override, const char *name, dp_font_t *fnt, float scale, } else { - Con_Printf("Warning: skipped unknown font property %s\n", com_token); + Con_DPrintf("Warning: skipped unknown font property %s\n", com_token); if(!COM_ParseToken_Simple(&p, false, false, true)) return; }