Qt: Implement fullscreen

This commit is contained in:
Connor McLaughlin
2020-01-06 16:27:39 +10:00
parent 87889a13e0
commit 207c75e6eb
4 changed files with 29 additions and 23 deletions

View File

@ -269,7 +269,7 @@ void QtHostInterface::updateHotkeyInputMap()
hk(QStringLiteral("Fullscreen"), [this](bool pressed) {
if (!pressed)
toggleFullscreen();
emit toggleFullscreenRequested();
});
hk(QStringLiteral("Pause"), [this](bool pressed) {
@ -313,8 +313,6 @@ void QtHostInterface::addButtonToInputMap(const QString& binding, InputButtonHan
}
}
void QtHostInterface::updateFullscreen() {}
void QtHostInterface::powerOffSystem()
{
if (!isOnWorkerThread())
@ -366,18 +364,6 @@ void QtHostInterface::pauseSystem(bool paused)
void QtHostInterface::changeDisc(QString new_disc_filename) {}
void QtHostInterface::toggleFullscreen()
{
if (!isOnWorkerThread())
{
QMetaObject::invokeMethod(this, "toggleFullscreen", Qt::QueuedConnection);
return;
}
m_settings.display_fullscreen = !m_settings.display_fullscreen;
updateFullscreen();
}
void QtHostInterface::doBootSystem(QString initial_filename, QString initial_save_state_filename)
{
if (!m_display_window->initializeDeviceContext())