mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +00:00
overlays/osk: fix y offset direction facepalm
This commit is contained in:
parent
fc34b3f144
commit
3202cc7021
@ -379,7 +379,7 @@ namespace rsx
|
||||
const auto get_y = [](const osk_window_layout& layout, const u16& height) -> f32
|
||||
{
|
||||
constexpr f32 origin_y = virtual_height / 2.0f;
|
||||
const f32 y = origin_y + layout.y_offset;
|
||||
const f32 y = origin_y - layout.y_offset; // Negative because we increase y towards the bottom and cellOsk increases y towards the top.
|
||||
|
||||
switch (layout.y_align)
|
||||
{
|
||||
|
@ -30,8 +30,8 @@ namespace rsx
|
||||
u32 uid = umax;
|
||||
u32 type_index = umax;
|
||||
|
||||
static const u16 virtual_width = 1280;
|
||||
static const u16 virtual_height = 720;
|
||||
static constexpr u16 virtual_width = 1280;
|
||||
static constexpr u16 virtual_height = 720;
|
||||
|
||||
u32 min_refresh_duration_us = 16600;
|
||||
atomic_t<bool> visible = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user