summaryrefslogtreecommitdiffstats
path: root/src/core/frontend
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-05-15 22:22:27 +0200
committerGitHub <noreply@github.com>2020-05-15 22:22:27 +0200
commitb73f678ee82a6f3fae36ed39dfc4cfc27c64a871 (patch)
treec87d2dc03d7ef150c49f694af33b1ad1c6f1ea7f /src/core/frontend
parentMerge pull request #3927 from jroweboy/fix-bug (diff)
downloadyuzu-b73f678ee82a6f3fae36ed39dfc4cfc27c64a871.tar
yuzu-b73f678ee82a6f3fae36ed39dfc4cfc27c64a871.tar.gz
yuzu-b73f678ee82a6f3fae36ed39dfc4cfc27c64a871.tar.bz2
yuzu-b73f678ee82a6f3fae36ed39dfc4cfc27c64a871.tar.lz
yuzu-b73f678ee82a6f3fae36ed39dfc4cfc27c64a871.tar.xz
yuzu-b73f678ee82a6f3fae36ed39dfc4cfc27c64a871.tar.zst
yuzu-b73f678ee82a6f3fae36ed39dfc4cfc27c64a871.zip
Diffstat (limited to 'src/core/frontend')
-rw-r--r--src/core/frontend/emu_window.cpp2
-rw-r--r--src/core/frontend/framebuffer_layout.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp
index eda466a5d..9a081fbd4 100644
--- a/src/core/frontend/emu_window.cpp
+++ b/src/core/frontend/emu_window.cpp
@@ -46,7 +46,7 @@ private:
EmuWindow::EmuWindow() {
// TODO: Find a better place to set this.
config.min_client_area_size =
- std::make_pair(Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height);
+ std::make_pair(Layout::MinimumSize::Width, Layout::MinimumSize::Height);
active_config = config;
touch_state = std::make_shared<TouchState>();
Input::RegisterFactory<Input::TouchDevice>("emu_window", touch_state);
diff --git a/src/core/frontend/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h
index 15ecfb13d..91ecc30ab 100644
--- a/src/core/frontend/framebuffer_layout.h
+++ b/src/core/frontend/framebuffer_layout.h
@@ -8,6 +8,11 @@
namespace Layout {
+namespace MinimumSize {
+constexpr u32 Width = 640;
+constexpr u32 Height = 360;
+} // namespace MinimumSize
+
namespace ScreenUndocked {
constexpr u32 Width = 1280;
constexpr u32 Height = 720;