Custom Layout options now uses X, Y, Width Height
Previously used Left, Top, Right, Bottom positions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user