X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fccbs_bigscreen.cpp;h=8a858d35d05b80c62392a427efea630021ea2d71;hp=5c91b9e045fe4cfce7d7fcc4f5a3ec963d56b61f;hb=c0503ae47521a645f60d14bbef87ee3d205fed21;hpb=2ec0a447d417da176443f8deb94e43befd7ad641 diff --git a/bigscreen/ccbs_bigscreen.cpp b/bigscreen/ccbs_bigscreen.cpp index 5c91b9e..8a858d3 100644 --- a/bigscreen/ccbs_bigscreen.cpp +++ b/bigscreen/ccbs_bigscreen.cpp @@ -55,10 +55,13 @@ void init(pqxx::connection &conn) } } + RotateScreen *aux_screen = new RotateScreen(); + screens.push_back(aux_screen); + conn.perform(FetchAuxilliaryScreens(&aux_screens)); for (std::vector::const_iterator i = aux_screens.begin(); i != aux_screens.end(); ++i) { if (*i == widestring("top10scores")) { - screens.push_back(new Top10ScoreScreen(conn, active_tournament.id)); + aux_screen->add_screen(new Top10ScoreScreen(conn, active_tournament.id)); continue; } std::fprintf(stderr, "Foobarbaz?\n");