]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_stats.c
prvm: Deduplicate console command handler
[xonotic/darkplaces.git] / r_stats.c
index e490e263974c6f5c831725b7911b14d083e636f3..edb4625f54804640bdb7e25c3aaa2c7f2723b982 100644 (file)
--- a/r_stats.c
+++ b/r_stats.c
@@ -239,7 +239,7 @@ void R_TimeReport_BeginFrame(void)
        }
 }
 
-static int R_CountLeafTriangles(const dp_model_t *model, const mleaf_t *leaf)
+static int R_CountLeafTriangles(const model_t *model, const mleaf_t *leaf)
 {
        int i, triangles = 0;
        for (i = 0;i < leaf->numleafsurfaces;i++)
@@ -504,7 +504,7 @@ void R_TimeReport_EndFrame(void)
                                        i++;
                                        x2 = max(x, x + width - sum * scalex);
                                        y2 = y + height - (data[index] - range_min) * scaley;
-                                       DrawQ_Line(1, x1, y1, x2, y2, r_speeds_graph_colors[color][0], r_speeds_graph_colors[color][1], r_speeds_graph_colors[color][2], r_speeds_graph_colors[color][3], 0);
+                                       DrawQ_Line(1, x1, y1, x2, y2, r_speeds_graph_colors[color][0], r_speeds_graph_colors[color][1], r_speeds_graph_colors[color][2], r_speeds_graph_colors[color][3], 0, true);
                                }
                        }
                }