]> git.sesse.net Git - ccbs/blobdiff - bigscreen/groupscreen.cpp
Remove a debugging printf.
[ccbs] / bigscreen / groupscreen.cpp
index 2827a6af3a111121e515b30db3ee0409820290bd..ed574ca68be233d41cb1decc9a332f0224e410c8 100644 (file)
@@ -3,7 +3,7 @@
 #include "fonts.h"
 
 GroupScreen::GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel)
-       : tournament(tournament), round(tournament), parallel(parallel), scores_changed(conn, "scores"), conn(conn), valid(false)
+       : tournament(tournament), round(round), parallel(parallel), scores_changed(conn, "scores"), conn(conn), valid(false)
 {
 }
 
@@ -33,7 +33,14 @@ void GroupScreen::draw(unsigned char *buf)
 
                unsigned x = 90;
                for (std::vector<Score>::const_iterator j = i->scores.begin(); j != i->scores.end(); ++j) {
-                       my_draw_text(widestring("1234"), buf, x, y, true, 255, 255, 255);
+                       if (j->score == -1) {
+                               continue;
+                       }
+                       
+                       char text[16];
+                       sprintf(text, "%u", j->score);
+                       
+                       my_draw_text(text, buf, x, y, true, 255, 255, 255);
                        x += 60;
                }