From 828e1fbd7f629605b14394f6e9b9c0f7682d51e1 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 18 Nov 2025 10:22:55 -0500 Subject: pke: static-ui do not propagate visibility to font --- src/static-ui.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/static-ui.cpp b/src/static-ui.cpp index d7d2f6a..e1585a9 100644 --- a/src/static-ui.cpp +++ b/src/static-ui.cpp @@ -421,13 +421,6 @@ bool pke_ui_calc_px(pk_arr_t &buffer, pk_arr_t< frs = FontType_GetFontRender(box->type_data->text.font_type_render)->settings; frs.surface_area_pos = box->internal.px_corner; frs.surface_area_size = box->internal.px_size; - /* - if (PK_HAS_FLAG(box->flags, PKE_UI_BOX_FLAG_VISIBILITY_INVISIBLE)) { - frs.flags = FONT_RENDER_FLAG(FONT_RENDER_FLAG_T(frs.flags) | FONT_RENDER_FLAG_T(FONT_RENDER_FLAG_VISIBILITY_INVISIBLE)); - } else { - frs.flags = FONT_RENDER_FLAG(FONT_RENDER_FLAG_T(frs.flags) & (~FONT_RENDER_FLAG_T(FONT_RENDER_FLAG_VISIBILITY_INVISIBLE))); - } - */ FontType_UpdateStringRender(box->type_data->text.font_type_render, &frs); } break; @@ -436,11 +429,6 @@ bool pke_ui_calc_px(pk_arr_t &buffer, pk_arr_t< frs = FontType_GetFontRender(box->type_data->button_text.font_type_render)->settings; frs.surface_area_pos = box->internal.px_corner; frs.surface_area_size = box->internal.px_size; - if (PK_HAS_FLAG(box->flags, PKE_UI_BOX_FLAG_VISIBILITY_INVISIBLE)) { - frs.flags = FONT_RENDER_FLAG(FONT_RENDER_FLAG_T(frs.flags) | FONT_RENDER_FLAG_T(FONT_RENDER_FLAG_VISIBILITY_INVISIBLE)); - } else { - frs.flags = FONT_RENDER_FLAG(FONT_RENDER_FLAG_T(frs.flags) & (~FONT_RENDER_FLAG_T(FONT_RENDER_FLAG_VISIBILITY_INVISIBLE))); - } FontType_UpdateStringRender(box->type_data->button_text.font_type_render, &frs); } break; -- cgit v1.2.3