summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/static-ui.cpp4
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)) {