Qt: Implement fullscreen
This commit is contained in:
@ -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())
|
||||
|
||||
Reference in New Issue
Block a user