- memset(framebuf, 0, 800*600*4);
-
- if (screens.size() > 0) {
- if (screens[0]->check_invalidated()) {
- screens[0]->draw(screenbuf);
- }
-
- memcpy(framebuf, screenbuf, 800*600*4);
+ if (mainscreen->check_invalidated()) {
+ mainscreen->draw(framebuf);
+ ptc_update(framebuf);
+ conn.await_notification(0, 10000);
+ } else {
+ ptc_update(framebuf);
+ conn.await_notification(0, 200000);