X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fccbs_bigscreen.cpp;h=8e65990f1dcdcac2a3ec999ed2e22b54d4330dea;hp=b183dddc6456a07f058aa1450c6ce54fee004304;hb=6b842eb46838b703e982c14a8e573e7a5f67a71e;hpb=9c22e166f4d25f2d80766de9baab56efd9d952b0 diff --git a/bigscreen/ccbs_bigscreen.cpp b/bigscreen/ccbs_bigscreen.cpp index b183ddd..8e65990 100644 --- a/bigscreen/ccbs_bigscreen.cpp +++ b/bigscreen/ccbs_bigscreen.cpp @@ -52,7 +52,7 @@ void init(pqxx::connection &conn) for (unsigned j = 0; j < i->num_machines; ++j) { RotateScreen *rs = new RotateScreen(); screens.push_back(rs); - rs->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel, j, i->num_machines)); + rs->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel, j, i->num_machines, i->players_per_machine)); } } } @@ -90,7 +90,7 @@ void init(pqxx::connection &conn) conn.perform(FetchListOfFinishedGroups(active_tournament.id, &finished_groups)); for (std::vector::const_iterator i = finished_groups.begin(); i != finished_groups.end(); ++i) { - finished_groups_screen->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel, 0, 1)); + finished_groups_screen->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel, 0, 1, 1)); } } @@ -116,7 +116,7 @@ void main_loop(pqxx::connection &conn) } if (mainscreen && mainscreen->check_invalidated()) { - mainscreen->draw(framebuf); + mainscreen->draw(framebuf, SCREEN_WIDTH, SCREEN_HEIGHT); ptc_update(framebuf); conn.await_notification(0, 10000); } else {