From 864ee5f167d1e2dda9bfce24ef617d71ce49bfd8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 7 Dec 2021 20:20:27 +0100 Subject: scrollview --- src/mgui/list.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/mgui/list.c') diff --git a/src/mgui/list.c b/src/mgui/list.c index a3a2422..cf39b02 100644 --- a/src/mgui/list.c +++ b/src/mgui/list.c @@ -1,8 +1,6 @@ #include "../../include/mgui/list.h" #include "../../include/alloc.h" #include -#include -#include #include /* @@ -82,22 +80,13 @@ static int max_int(int a, int b) { return a >= b ? a : b; } +/* TODO: Check if visible in scissor */ + mgl_vec2i mgui_list_draw(mgui_list *self, mgl_window *window) { mgl_vec2i position = self->position; /* TODO: */ mgl_vec2i size = (mgl_vec2i){ 0, 0 }; - /* TODO: - mgl_scissor prev_scissor; - mgl_window_get_scissor(window, &prev_scissor); - - mgl_scissor new_scissor = { - .position = self->position, - .size = self->size - }; - mgl_window_set_scissor(window, &new_scissor); - */ - /* TODO: if(self->background_color.a > 0) { mgl_rectangle rect = { @@ -134,7 +123,5 @@ mgl_vec2i mgui_list_draw(mgui_list *self, mgl_window *window) { } } - /* TODO: Remove */ - /*mgl_window_set_scissor(window, &prev_scissor);*/ return size; } -- cgit v1.2.3