diff --git a/qw/source/r_main.c b/qw/source/r_main.c index b04450aaa..82f4bedfa 100644 --- a/qw/source/r_main.c +++ b/qw/source/r_main.c @@ -273,7 +273,7 @@ R_Init_Cvars (void) r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, "Toggle the display of a performance graph"); r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, "Toggle the display of a graph showing network performance"); r_zgraph = Cvar_Get ("r_zgraph", "0", CVAR_NONE, "Toggle the graph that reports the changes of z-axis position"); - r_graphheight = Cvar_Get ("r_graphheight", "15", CVAR_NONE, "Set the number of lines displayed in the various graphs"); + r_graphheight = Cvar_Get ("r_graphheight", "32", CVAR_NONE, "Set the number of lines displayed in the various graphs"); r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, "Toggles the drawing of textures"); r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, "Determines the ambient lighting for a level"); r_clearcolor = Cvar_Get ("r_clearcolor", "2", CVAR_NONE, "This sets the color for areas outside of the current map"); diff --git a/qw/source/r_misc.c b/qw/source/r_misc.c index 4ca68aa2b..a82cceb19 100644 --- a/qw/source/r_misc.c +++ b/qw/source/r_misc.c @@ -158,7 +158,7 @@ R_LineGraph (int x, int y, int h) if (h > s) h = s; - for (i = 0; i < h; i++, dest -= vid.rowbytes * 2) { + for (i = 0; i < h; i++, dest -= vid.rowbytes) { dest[0] = color; // *(dest-vid.rowbytes) = 0x30; } @@ -246,7 +246,7 @@ R_NetGraph (void) } x = cl_hudswap->int_val ? vid.width - (NET_TIMINGS + 8) : 8; - y += 8; + y = vid.height + 24 - sb_lines - r_graphheight->int_val - 1; for (a = 0; a < NET_TIMINGS; a++) { i = (cls.netchan.outgoing_sequence - a) & NET_TIMINGSMASK;