Added back padding to manually sized text buttons.
@@ -612,7 +612,7 @@ bool32_t ui_button_at(const char *text, vec3 window_relative_pos, vec2 size) {
ui_box (window_relative_pos, vec3{ size.x, size.y, finger_offset }, skui_mat, skui_palette[2] * color_blend);
ui_box (window_relative_pos + vec3{back_size, back_size, mm2m}, vec3{ size.x+back_size*2, size.y+back_size*2, skui_settings.backplate_depth*skui_settings.depth+mm2m }, skui_mat, skui_color_border * color_blend);
- ui_text(window_relative_pos - vec3{ size.x/2, size.y/2, finger_offset + 2*mm2m }, size, text, text_align_center, text_align_center);
+ ui_text(window_relative_pos - vec3{ size.x/2, size.y/2, finger_offset + 2*mm2m }, vec2{size.x-skui_settings.padding*2, size.y-skui_settings.padding*2}, text, text_align_center, text_align_center);
return state & button_state_just_active;
}
