From: havoc Date: Thu, 19 Apr 2007 07:32:00 +0000 (+0000) Subject: adjusted netgraph code to draw the latest netgraph column on the right X-Git-Tag: xonotic-v0.1.0preview~3294 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3ae5a27bc289ce5c7be2955c2865239317db0295;p=xonotic%2Fdarkplaces.git adjusted netgraph code to draw the latest netgraph column on the right rather than the left git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7141 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index faef96f5..4d0d7709 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -189,6 +189,9 @@ void SCR_DrawNetGraph_DrawGraph (int graphx, int graphy, int barwidth, int barhe { int j, k, x, y, index, offset, height; // draw the bar graph itself + // advance the packet counter because it is the latest packet column being + // built up and should come last + packetcounter = (packetcounter + 1) % NETGRAPH_PACKETS; for (j = 0;j < NETGRAPH_PACKETS;j++) { x = graphx + j * barwidth;