From 1660ac1fa8ff47ed600dac304f1da863ef493b33 Mon Sep 17 00:00:00 2001 From: flowtron Date: Sun, 18 Oct 2009 15:34:49 +0000 Subject: [PATCH] colour-coded WQD (cut-offs: 4000, 6000, 8000) and added blendbox for stats git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4661 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderhud.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index f9ee0a90..7884d2f0 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -581,9 +581,10 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat if(!hidestats) { const int left = (VIRTW-225-10)*2, top = (VIRTH*7/8)*2; + blendbox(left - 24, top - 24, VIRTW*2 - 72, VIRTH*2 - 48, true, -1); draw_textf("fps %d", left, top, curfps); draw_textf("lod %d", left, top+80, lod_factor()); - draw_textf("wqd %d", left, top+160, nquads); + draw_textf("wqd \f%s%d", left, top+160, nquads > 3999 ? (nquads > 5999 ? (nquads > 7999 ? "3" : "2") : "1") : "0", nquads); // new: B draw_textf("wvt %d", left, top+240, curvert); draw_textf("evt %d", left, top+320, xtraverts); }