general: Use console mode helper across project
This commit is contained in:
parent
ab862207d7
commit
3c45452fae
13 changed files with 34 additions and 49 deletions
|
@ -50,8 +50,7 @@ FramebufferLayout DefaultFrameLayout(u32 width, u32 height) {
|
|||
}
|
||||
|
||||
FramebufferLayout FrameLayoutFromResolutionScale(f32 res_scale) {
|
||||
const bool is_docked =
|
||||
Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked;
|
||||
const bool is_docked = Settings::IsDockedMode();
|
||||
const u32 screen_width = is_docked ? ScreenDocked::Width : ScreenUndocked::Width;
|
||||
const u32 screen_height = is_docked ? ScreenDocked::Height : ScreenUndocked::Height;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue