]> git.sesse.net Git - ccbs/commitdiff
Show the real score instead of 1234.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 19 Feb 2005 16:37:03 +0000 (16:37 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 19 Feb 2005 16:37:03 +0000 (16:37 +0000)
bigscreen/groupscreen.cpp

index 6e59053d6b8ed79a35acf8473e6021df27d5c356..9150906d17f8645db7720070a8c77ccf7413249f 100644 (file)
@@ -33,7 +33,10 @@ 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);
+                       char text[16];
+                       sprintf(text, "%u", j->score);
+                       
+                       my_draw_text(text, buf, x, y, true, 255, 255, 255);
                        x += 60;
                }