X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fgroupscreen.cpp;h=26d769af52884bdfedfd253f52d034f17e755227;hp=5f16ebf22fe98be6766e3a2fc772af2c0cca28da;hb=6cf5f0348c59d9e8e4d740572b5bfbaa74b9bf56;hpb=c6fba5909e3fcfd741e337b76c5d4228e81444e4 diff --git a/bigscreen/groupscreen.cpp b/bigscreen/groupscreen.cpp index 5f16ebf..26d769a 100644 --- a/bigscreen/groupscreen.cpp +++ b/bigscreen/groupscreen.cpp @@ -123,6 +123,16 @@ void GroupScreen::draw(unsigned char *buf) x += width[col] + 20; } + // draw total + { + char text[16]; + sprintf(text, "%u", i->total); + + unsigned this_width = my_draw_text(text, NULL, 22.0); + my_draw_text(text, buf, 22.0, x + width[num_scores + 1] / 2 - this_width / 2, y); + x += width[num_scores + 1] + 20; + } + y += 40; }