diff --git a/src/GUI.cpp b/src/GUI.cpp index db97b4f..187b8fa 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -17,9 +17,13 @@ auto GUI_run(int argc, char **argv) -> int { //Dummy-Values TBD window->begin(); Image *image = new Image(0, 30, window_width, window_height); + status[0] = new Statusbar(0, 0, 300, 30, resolusion); status[1] = new Statusbar(300, 0, 170, 30, "Event:"); status[2] = new Statusbar(470, 0, 200, 30, "Mouse Position:"); + vkvm::registerEvent(vkvm::EventType::Redraw, [image](){ + image->redraw(); + }); Fl::repeat_timeout(0.5, refresh_image, image); window->end(); window->show(argc, argv);