3 #include "top10scorescreen.h"
5 Top10ScoreScreen::Top10ScoreScreen(pqxx::connection &conn, unsigned tournament)
6 : conn(conn), tournament(tournament), scores_changed(conn, "scores"), valid(false)
10 Top10ScoreScreen::~Top10ScoreScreen()
14 bool Top10ScoreScreen::check_invalidated()
18 if (!scores_changed.get_flag())
24 void Top10ScoreScreen::draw(unsigned char *buf)
26 std::vector<TextDefer> td;
27 scores_changed.reset_flag();
28 memset(buf, 0, 800 * 600 * 4);
30 std::fprintf(stderr, "foo bar\n");
33 draw_all_deferred_text(buf, td, last_text);