Put all the auxilliary screens in a rotate screen.
[ccbs] / bigscreen / ccbs_bigscreen.cpp
index 5c91b9e..8a858d3 100644 (file)
@@ -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<widestring>::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");