diff options
| author | 2015-03-07 17:21:19 -0500 | |
|---|---|---|
| committer | 2015-03-07 17:21:19 -0500 | |
| commit | 9960c49c217d2c1ae202bdacd475c9a47cda39b9 (patch) | |
| tree | a80e07b2ee63c3a081f3b3aec4eb45279b6f9b85 /src/citra_qt/bootmanager.cpp | |
| parent | Merge pull request #615 from Subv/services (diff) | |
| download | yuzu-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.cpp | 3 |
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 | ||
| 240 | void GRenderWindow::BackupGeometry() | 241 | void GRenderWindow::BackupGeometry() |