|
|
@ -128,9 +128,6 @@ GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread) : |
|
|
|
|
|
|
|
|
BackupGeometry(); |
|
|
BackupGeometry(); |
|
|
|
|
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
|
|
|
|
|
connect(this->windowHandle(), SIGNAL(screenChanged(QScreen*)), this, SLOT(OnFramebufferSizeChanged())); |
|
|
|
|
|
#endif
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void GRenderWindow::moveContext() |
|
|
void GRenderWindow::moveContext() |
|
|
@ -278,3 +275,12 @@ void GRenderWindow::OnEmulationStarting(EmuThread* emu_thread) { |
|
|
void GRenderWindow::OnEmulationStopping() { |
|
|
void GRenderWindow::OnEmulationStopping() { |
|
|
emu_thread = nullptr; |
|
|
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
|
|
|
|
|
|
} |