redraw
This commit is contained in:
parent
d711066980
commit
3b89560fef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user