#include "fonts.h"
#include "groupscreen.h"
#include "splitscreen.h"
+#include "rotatescreen.h"
Tournament active_tournament;
std::vector<SkeletonGroup> active_groups;
std::fprintf(stderr, "tourn: %u round: %u parallel: %u\n",
i->tournament, i->round, i->parallel);
- screens.push_back(new GroupScreen(conn, i->tournament, i->round, i->parallel));
+ // memory leaks here?
+ RotateScreen *rs = new RotateScreen();
+ screens.push_back(rs);
+ rs->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel));
}
}
if (mainscreen->check_invalidated()) {
mainscreen->draw(framebuf);
+ ptc_update(framebuf);
+ conn.await_notification(0, 10000);
+ } else {
+ ptc_update(framebuf);
+ conn.await_notification(0, 200000);
}
- ptc_update(framebuf);
-
- conn.await_notification(0, 50000);
}
int main(int argc, char **argv)