overlays/osk: fix y offset direction facepalm

This commit is contained in:
Megamouse 2023-01-28 22:29:10 +01:00
parent fc34b3f144
commit 3202cc7021
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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;