#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)
{
}
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;
}