diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-09-22 11:41:40 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-09-22 11:41:40 -0400 |
| commit | ccf107a65e566b1372907ae95e099f3dfa0a076e (patch) | |
| tree | 36af97d7e57e39564a4e95b1dfa6452c8c6df011 | |
| parent | 2144976223779e5cf97aa0118f251f4d2632dc58 (diff) | |
pke: static ui border width 2->1
| -rw-r--r-- | src/static-ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static-ui.cpp b/src/static-ui.cpp index dc5ddc9..517b4fd 100644 --- a/src/static-ui.cpp +++ b/src/static-ui.cpp @@ -407,8 +407,8 @@ void pke_ui_calc_px(pk_arr_t<pke_ui_box_instance_buffer_item> &buffer, pk_arr_t< tmp.pos_scale = glm::scale(tmp.pos_scale, scale); tmp.color_border = box->color_border; tmp.color_background = box->color_background; - tmp.px_scale.x = (2.0 / (float)Extent.width); - tmp.px_scale.y = (2.0 / (float)Extent.height); + tmp.px_scale.x = (1.0 / (float)Extent.width); + tmp.px_scale.y = (1.0 / (float)Extent.height); tmp.depth = (float)box->layer; tmp.texture_layer = -1; if (PK_HAS_FLAG(box->type, PKE_UI_BOX_TYPE_BUTTON_IMAGE)) { |
