Fix moving behaviour

This commit is contained in:
2024-01-21 19:39:25 +00:00
parent 64f0328966
commit 53d0a4698f
2 changed files with 28 additions and 39 deletions

View File

@@ -76,13 +76,6 @@ i32 run_main_loop(void) {
i32 toolbox_button_x = (toolbox->width - BUTTON_WIDTH) / 2;
quad qd = (quad){
.p0 = (point){140, 40},
.p1 = (point){190, 40},
.p2 = (point){170, 200},
.p3 = (point){210, 200},
};
while (comp.running) {
while (SDL_PollEvent(&(comp.event))) {
handle_ui_events(&(comp.windows[comp.active_window - 1]), &(comp.ctx),
@@ -159,8 +152,6 @@ i32 run_main_loop(void) {
comp.nodes[i].colours);
}
qd = ui_quad(main_window, &(comp.ctx), qd, op_node_colours);
for (u64 i = 0; i < MAX_WINDOWS; ++i) {
swap_buffers(&(comp.windows[i]));
}