summaryrefslogtreecommitdiff
path: root/src/citra_qt/bootmanager.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2015-03-07 17:21:19 -0500
committerGravatar bunnei2015-03-07 17:21:19 -0500
commit9960c49c217d2c1ae202bdacd475c9a47cda39b9 (patch)
treea80e07b2ee63c3a081f3b3aec4eb45279b6f9b85 /src/citra_qt/bootmanager.cpp
parentMerge pull request #615 from Subv/services (diff)
downloadyuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.tar.gz
yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.tar.xz
yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.zip
Set framebuffer layout from EmuWindow.
Diffstat (limited to 'src/citra_qt/bootmanager.cpp')
-rw-r--r--src/citra_qt/bootmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp
index 6514288a0..a040e75c1 100644
--- a/src/citra_qt/bootmanager.cpp
+++ b/src/citra_qt/bootmanager.cpp
@@ -155,6 +155,7 @@ GRenderWindow::GRenderWindow(QWidget* parent) : QWidget(parent), emu_thread(this
155 155
156 child = new GGLWidgetInternal(fmt, this); 156 child = new GGLWidgetInternal(fmt, this);
157 QBoxLayout* layout = new QHBoxLayout(this); 157 QBoxLayout* layout = new QHBoxLayout(this);
158
158 resize(VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight); 159 resize(VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight);
159 layout->addWidget(child); 160 layout->addWidget(child);
160 layout->setMargin(0); 161 layout->setMargin(0);
@@ -234,7 +235,7 @@ void GRenderWindow::OnFramebufferSizeChanged()
234 unsigned height = child->QPaintDevice::height(); 235 unsigned height = child->QPaintDevice::height();
235#endif 236#endif
236 237
237 NotifyFramebufferSizeChanged(std::make_pair(width, height)); 238 NotifyFramebufferLayoutChanged(EmuWindow::FramebufferLayout::DefaultScreenLayout(width, height));
238} 239}
239 240
240void GRenderWindow::BackupGeometry() 241void GRenderWindow::BackupGeometry()