mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-06 06:55:02 +00:00
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:
parent
04f7dd02fd
commit
32c9c6f515
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue