From 3ae5a27bc289ce5c7be2955c2865239317db0295 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 19 Apr 2007 07:32:00 +0000 Subject: [PATCH] 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 --- cl_screen.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2