mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-11 05:32:44 +00:00
Qt: Restore fullscreen resolution when regaining focus
This commit is contained in:
parent
6c19b5947b
commit
0273cae3a2
3 changed files with 15 additions and 2 deletions
|
@ -482,6 +482,10 @@ void MainWindow::ConnectRenderWidget()
|
|||
m_rendering_to_main = false;
|
||||
m_render_widget->hide();
|
||||
connect(m_render_widget, &RenderWidget::Closed, this, &MainWindow::ForceStop);
|
||||
connect(m_render_widget, &RenderWidget::FocusChanged, this, [this](bool focus) {
|
||||
if (m_render_widget->isFullScreen())
|
||||
SetFullScreenResolution(focus);
|
||||
});
|
||||
}
|
||||
|
||||
void MainWindow::ConnectHost()
|
||||
|
@ -874,6 +878,10 @@ void MainWindow::HideRenderWidget(bool reinit)
|
|||
|
||||
m_render_widget->installEventFilter(this);
|
||||
connect(m_render_widget, &RenderWidget::Closed, this, &MainWindow::ForceStop);
|
||||
connect(m_render_widget, &RenderWidget::FocusChanged, this, [this](bool focus) {
|
||||
if (m_render_widget->isFullScreen())
|
||||
SetFullScreenResolution(focus);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue