Fix moving behaviour
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user