Custom Layout options now uses X, Y, Width Height

Previously used Left, Top, Right, Bottom positions
This commit is contained in:
OpenSauce04
2024-05-26 21:10:57 +01:00
parent b62d910fbf
commit 90c64a4e0a
2 changed files with 32 additions and 28 deletions

View File

@@ -379,12 +379,16 @@ FramebufferLayout CustomFrameLayout(u32 width, u32 height, bool is_swapped) {
Common::Rectangle<u32> top_screen{Settings::values.custom_top_left.GetValue(),
Settings::values.custom_top_top.GetValue(),
Settings::values.custom_top_right.GetValue(),
Settings::values.custom_top_bottom.GetValue()};
(u32)(Settings::values.custom_top_left.GetValue() +
Settings::values.custom_top_right.GetValue()),
(u32)(Settings::values.custom_top_top.GetValue() +
Settings::values.custom_top_bottom.GetValue())};
Common::Rectangle<u32> bot_screen{Settings::values.custom_bottom_left.GetValue(),
Settings::values.custom_bottom_top.GetValue(),
Settings::values.custom_bottom_right.GetValue(),
Settings::values.custom_bottom_bottom.GetValue()};
(u32)(Settings::values.custom_bottom_left.GetValue() +
Settings::values.custom_bottom_right.GetValue()),
(u32)(Settings::values.custom_bottom_top.GetValue() +
Settings::values.custom_bottom_bottom.GetValue())};
if (is_swapped) {
res.top_screen = bot_screen;