overlays: Fixups for switch rendering

- Disallow odd numbers for the primary dimension
- Increase the size slightly in home menus
- Disable vertex snapping when rendering SDFs
This commit is contained in:
kd-11 2026-03-22 17:40:26 +03:00 committed by kd-11
parent 04f7dd02fd
commit 32c9c6f515
3 changed files with 4 additions and 2 deletions

View file

@ -16,7 +16,7 @@ namespace rsx
{
static constexpr u16 menu_entry_height = 40;
static constexpr u16 menu_entry_margin = 30;
static constexpr u16 menu_checkbox_size = 20;
static constexpr u16 menu_checkbox_size = 24;
static constexpr u16 element_height = 25;
enum class page_navigation

View file

@ -84,7 +84,7 @@ namespace rsx::overlays
void switchbox::set_size(u16 w, u16 h)
{
const u16 dim = std::max<u16>(std::min(w, h), 15);
const u16 dim = std::max<u16>(std::min(w, h), 14) & ~1u;
box_layout::set_size(w, h);
clear_items();

View file

@ -646,6 +646,8 @@ namespace rsx
config.sdf_config.br = 0.f;
config.sdf_config.bw = border_size;
config.sdf_config.border_color = border_color;
config.disable_vertex_snap = true;
}
compiled_resource& overlay_element::get_compiled()