From 0ddc564a09bfa4d08c4358a7763563e216a5290f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Mon, 11 Dec 2023 19:03:29 +0100 Subject: [PATCH] small fix in gui_panel_id --- engine/joint/v4k.h | 3 +-- engine/split/v4k_gui.c | 3 +-- engine/v4k.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 52a53c8..3b017c7 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -360911,8 +360911,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) { (void)id; vec4 scissor={0, 0, window_width(), window_height()}; if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); - // scissor = gui_getscissorrect(skin, NULL, rect); - scissor = rect; + scissor = gui_getscissorrect(skin, NULL, rect); if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST); diff --git a/engine/split/v4k_gui.c b/engine/split/v4k_gui.c index e57ef48..49a5119 100644 --- a/engine/split/v4k_gui.c +++ b/engine/split/v4k_gui.c @@ -145,8 +145,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) { (void)id; vec4 scissor={0, 0, window_width(), window_height()}; if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); - // scissor = gui_getscissorrect(skin, NULL, rect); - scissor = rect; + scissor = gui_getscissorrect(skin, NULL, rect); if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST); diff --git a/engine/v4k.c b/engine/v4k.c index 39180f1..6a73fd3 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -11231,8 +11231,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) { (void)id; vec4 scissor={0, 0, window_width(), window_height()}; if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); - // scissor = gui_getscissorrect(skin, NULL, rect); - scissor = rect; + scissor = gui_getscissorrect(skin, NULL, rect); if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST);