summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-11-18 10:22:55 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-11-18 10:22:55 -0500
commit828e1fbd7f629605b14394f6e9b9c0f7682d51e1 (patch)
treeaedbfbdefff09336e0b8ed07238964ecf8f478a3
parent1a083f7bb41480980d1a1e5fd680189892b33afa (diff)
pke: static-ui do not propagate visibility to font
-rw-r--r--src/static-ui.cpp12
1 files changed, 0 insertions, 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<pke_ui_box_instance_buffer_item> &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<pke_ui_box_instance_buffer_item> &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;