From 86b52d275aa1fabe7579fe0b74cf95d31e78cdd0 Mon Sep 17 00:00:00 2001 From: Jay Dolan Date: Sat, 7 Jan 2006 20:41:07 +0000 Subject: [PATCH] Fixed netgraph breaking transparent console. Also made netgraph itself transparent, and put it 'behind' the HUD. See Bug#4. --- src/cl_scrn.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/cl_scrn.c b/src/cl_scrn.c index 1719108..fb800a3 100644 --- a/src/cl_scrn.c +++ b/src/cl_scrn.c @@ -156,8 +156,8 @@ void SCR_DrawDebugGraph (void) x = scr_vrect.x; y = scr_vrect.y+scr_vrect.height; - re.DrawFill (x, y-scr_graphheight->value, - w, scr_graphheight->value, 8); + //re.DrawFill (x, y-scr_graphheight->value, + //w, scr_graphheight->value, 8); for (a=0 ; avalue) //update and draw netgraph behind everything else + SCR_DebugGraph (cls.frametime*300, 0); + + if (scr_debuggraph->value || scr_timegraph->value || scr_netgraph->value) + SCR_DrawDebugGraph (); SCR_DrawStats (); if (cl.frame.playerstate.stats[STAT_LAYOUTS] & 1) @@ -1384,16 +1390,10 @@ void SCR_UpdateScreen (void) sprintf(s, "%3.0ffps", 1/cls.frametime); DrawString(viddef.width-64,0,s); } + + SCR_DrawConsole (); - if (scr_timegraph->value) - SCR_DebugGraph (cls.frametime*300, 0); - - if (scr_debuggraph->value || scr_timegraph->value || scr_netgraph->value) - SCR_DrawDebugGraph (); - - SCR_DrawPause (); - - SCR_DrawConsole (); + SCR_DrawPause (); M_Draw ();