From ff14b69e00114f783db036092c85560c75149823 Mon Sep 17 00:00:00 2001 From: Sacha Date: Tue, 5 Nov 2013 16:00:13 +1000 Subject: [PATCH] Qt: Update touch controller layout on switch to fullscreen. Note: The touch controller configuration still will not update. --- Qt/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp index c434e70d83..0caf9a68ab 100644 --- a/Qt/mainwindow.cpp +++ b/Qt/mainwindow.cpp @@ -17,6 +17,7 @@ #include "base/display.h" #include "base/NKCodeFromQt.h" #include "GPU/GPUInterface.h" +#include "UI/GamepadEmu.h" #include "QtHost.h" #include "EmuThread.h" @@ -551,6 +552,7 @@ void MainWindow::on_action_OptionsFullScreen_triggered() ui->menubar->setVisible(true); ui->statusbar->setVisible(true); SetZoom(g_Config.iInternalResolution); + InitPadLayout(); if (globalUIState == UISTATE_INGAME && QApplication::overrideCursor()) QApplication::restoreOverrideCursor(); @@ -583,6 +585,7 @@ void MainWindow::on_action_OptionsFullScreen_triggered() dp_yres = pixel_yres; if (gpu) gpu->Resized(); + InitPadLayout(); if (globalUIState == UISTATE_INGAME && !g_Config.bShowTouchControls) QApplication::setOverrideCursor(QCursor(Qt::BlankCursor));