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:
@@ -16,7 +16,7 @@ namespace rsx
|
|||||||
{
|
{
|
||||||
static constexpr u16 menu_entry_height = 40;
|
static constexpr u16 menu_entry_height = 40;
|
||||||
static constexpr u16 menu_entry_margin = 30;
|
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;
|
static constexpr u16 element_height = 25;
|
||||||
|
|
||||||
enum class page_navigation
|
enum class page_navigation
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ namespace rsx::overlays
|
|||||||
|
|
||||||
void switchbox::set_size(u16 w, u16 h)
|
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);
|
box_layout::set_size(w, h);
|
||||||
|
|
||||||
clear_items();
|
clear_items();
|
||||||
|
|||||||
@@ -646,6 +646,8 @@ namespace rsx
|
|||||||
config.sdf_config.br = 0.f;
|
config.sdf_config.br = 0.f;
|
||||||
config.sdf_config.bw = border_size;
|
config.sdf_config.bw = border_size;
|
||||||
config.sdf_config.border_color = border_color;
|
config.sdf_config.border_color = border_color;
|
||||||
|
|
||||||
|
config.disable_vertex_snap = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
compiled_resource& overlay_element::get_compiled()
|
compiled_resource& overlay_element::get_compiled()
|
||||||
|
|||||||
Reference in New Issue
Block a user