diff options
author | Kloen <jlcc20@gmail.com> | 2015-09-04 15:55:48 +0200 |
---|---|---|
committer | Kloen <jlcc20@gmail.com> | 2015-09-18 11:36:59 +0200 |
commit | 541fc80240440f73c6d83650d938991a77995b97 (patch) | |
tree | 124e40091433e225441c0e5f923c322d3bc15514 /src/citra_qt/bootmanager.cpp | |
parent | Merge pull request #1097 from yuriks/cfg-blocks (diff) | |
download | yuzu-541fc80240440f73c6d83650d938991a77995b97.tar yuzu-541fc80240440f73c6d83650d938991a77995b97.tar.gz yuzu-541fc80240440f73c6d83650d938991a77995b97.tar.bz2 yuzu-541fc80240440f73c6d83650d938991a77995b97.tar.lz yuzu-541fc80240440f73c6d83650d938991a77995b97.tar.xz yuzu-541fc80240440f73c6d83650d938991a77995b97.tar.zst yuzu-541fc80240440f73c6d83650d938991a77995b97.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/bootmanager.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 7a1360d34..bb9b204f3 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -128,9 +128,6 @@ GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread) : BackupGeometry(); -#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) - connect(this->windowHandle(), SIGNAL(screenChanged(QScreen*)), this, SLOT(OnFramebufferSizeChanged())); -#endif } void GRenderWindow::moveContext() @@ -278,3 +275,12 @@ void GRenderWindow::OnEmulationStarting(EmuThread* emu_thread) { void GRenderWindow::OnEmulationStopping() { emu_thread = nullptr; } + +void GRenderWindow::showEvent(QShowEvent * event) { + QWidget::showEvent(event); + + // windowHandle() is not initialized until the Window is shown, so we connect it here. + #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + connect(this->windowHandle(), SIGNAL(screenChanged(QScreen*)), this, SLOT(OnFramebufferSizeChanged()), Qt::UniqueConnection); + #endif +} |