mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Qt: Fix desktop globalUIState -> GetUIState
This commit is contained in:
parent
c5e5ebe4f2
commit
6cada10e86
@ -51,8 +51,8 @@ inline float clamp1(float x) {
|
||||
|
||||
void MainWindow::newFrame()
|
||||
{
|
||||
if (lastUIState != globalUIState) {
|
||||
lastUIState = globalUIState;
|
||||
if (lastUIState != GetUIState()) {
|
||||
lastUIState = GetUIState();
|
||||
if (lastUIState == UISTATE_INGAME && g_Config.bFullScreen && !QApplication::overrideCursor() && !g_Config.bShowTouchControls)
|
||||
QApplication::setOverrideCursor(QCursor(Qt::BlankCursor));
|
||||
if (lastUIState != UISTATE_INGAME && g_Config.bFullScreen && QApplication::overrideCursor())
|
||||
@ -335,7 +335,7 @@ void MainWindow::fullscrAct()
|
||||
showNormal();
|
||||
SetZoom(g_Config.iInternalResolution);
|
||||
InitPadLayout(dp_xres, dp_yres);
|
||||
if (globalUIState == UISTATE_INGAME && QApplication::overrideCursor())
|
||||
if (GetUIState() == UISTATE_INGAME && QApplication::overrideCursor())
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
else {
|
||||
@ -351,7 +351,7 @@ void MainWindow::fullscrAct()
|
||||
if (gpu)
|
||||
gpu->Resized();
|
||||
InitPadLayout(dp_xres, dp_yres);
|
||||
if (globalUIState == UISTATE_INGAME && !g_Config.bShowTouchControls)
|
||||
if (GetUIState() == UISTATE_INGAME && !g_Config.bShowTouchControls)
|
||||
QApplication::setOverrideCursor(QCursor(Qt::BlankCursor));
|
||||
|
||||
}
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "ConsoleListener.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/System.h"
|
||||
#include "Debugger/debugger_disasm.h"
|
||||
#include "Debugger/debugger_memory.h"
|
||||
#include "Debugger/debugger_memorytex.h"
|
||||
@ -206,9 +207,9 @@ public slots:
|
||||
if (_eventCheck)
|
||||
setChecked(*_eventCheck);
|
||||
if (_stateEnable >= 0)
|
||||
setEnabled(globalUIState == _stateEnable);
|
||||
setEnabled(GetUIState() == _stateEnable);
|
||||
if (_stateDisable >= 0)
|
||||
setEnabled(globalUIState != _stateDisable);
|
||||
setEnabled(GetUIState() != _stateDisable);
|
||||
if (_enableStepping && Core_IsStepping())
|
||||
setEnabled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user