]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
adjusted netgraph code to draw the latest netgraph column on the right
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 Apr 2007 07:32:00 +0000 (07:32 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 Apr 2007 07:32:00 +0000 (07:32 +0000)
rather than the left

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7141 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index faef96f5f6886ce54cd822bfe7506f33ecbeb5d3..4d0d7709f19ba99dc12684399f251e6eff86ee28 100644 (file)
@@ -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;