mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-19 21:52:45 +00:00
Blind Qt fix
This commit is contained in:
parent
f02c983a63
commit
9518aa0900
@ -89,7 +89,6 @@ void MainWindow::updateMenus()
|
||||
updateMenuGroupInt(saveStateGroup, g_Config.iCurrentStateSlot);
|
||||
updateMenuGroupInt(displayRotationGroup, g_Config.iInternalScreenRotation);
|
||||
updateMenuGroupInt(renderingResolutionGroup, g_Config.iInternalResolution);
|
||||
updateMenuGroupInt(renderingModeGroup, g_Config.iRenderingMode);
|
||||
updateMenuGroupInt(frameSkippingGroup, g_Config.iFrameSkip);
|
||||
updateMenuGroupInt(frameSkippingTypeGroup, g_Config.iFrameSkipType);
|
||||
updateMenuGroupInt(textureFilteringGroup, g_Config.iTexFiltering);
|
||||
@ -599,6 +598,9 @@ void MainWindow::createMenus()
|
||||
gameSettingsMenu->add(new MenuAction(this, SLOT(fullscrAct()), QT_TR_NOOP("Fu&llscreen"), QKeySequence::FullScreen))
|
||||
#endif
|
||||
->addEventChecked(&g_Config.bFullScreen);
|
||||
gameSettingsMenu->add(new MenuAction(this, SLOT(bufferRenderAct()), QT_TR_NOOP("&Skip buffer effects")))
|
||||
->addEventChecked(&g_Config.bSkipBufferEffects);
|
||||
|
||||
MenuTree* renderingResolutionMenu = new MenuTree(this, gameSettingsMenu, QT_TR_NOOP("&Rendering resolution"));
|
||||
renderingResolutionGroup = new MenuActionGroup(this, renderingResolutionMenu, SLOT(renderingResolutionGroup_triggered(QAction *)),
|
||||
QStringList() << "&Auto" << "&1x" << "&2x" << "&3x" << "&4x" << "&5x" << "&6x" << "&7x" << "&8x" << "&9x" << "1&0x",
|
||||
@ -609,10 +611,6 @@ void MainWindow::createMenus()
|
||||
QStringList() << "&1x" << "&2x" << "&3x" << "&4x" << "&5x" << "&6x" << "&7x" << "&8x" << "&9x" << "1&0x",
|
||||
QList<int>() << 1 << 2 << 3 << 4 << 5 << 6 << 7 << 8 << 9 << 10);
|
||||
|
||||
MenuTree* renderingModeMenu = new MenuTree(this, gameSettingsMenu, QT_TR_NOOP("Rendering m&ode"));
|
||||
renderingModeGroup = new MenuActionGroup(this, renderingModeMenu, SLOT(renderingModeGroup_triggered(QAction *)),
|
||||
QStringList() << "&Skip buffered effects (non-buffered, faster)" << "&Buffered rendering",
|
||||
QList<int>() << 0 << 1);
|
||||
MenuTree* frameSkippingMenu = new MenuTree(this, gameSettingsMenu, QT_TR_NOOP("&Frame skipping"));
|
||||
frameSkippingMenu->add(new MenuAction(this, SLOT(autoframeskipAct()), QT_TR_NOOP("&Auto")))
|
||||
->addEventChecked(&g_Config.bAutoFrameSkip);
|
||||
|
@ -119,7 +119,6 @@ private slots:
|
||||
void moreSettingsAct() { NativeMessageReceived("settings", ""); }
|
||||
|
||||
void bufferRenderAct() {
|
||||
g_Config.iRenderingMode = !g_Config.iRenderingMode;
|
||||
NativeMessageReceived("gpu_resized", "");
|
||||
}
|
||||
void linearAct() { g_Config.iTexFiltering = (g_Config.iTexFiltering != 0) ? 0 : 3; }
|
||||
@ -134,15 +133,10 @@ private slots:
|
||||
g_Config.iSmallDisplayZoomType = action->data().toInt();
|
||||
NativeMessageReceived("gpu_resized", "");
|
||||
}
|
||||
void renderingModeGroup_triggered(QAction *action) {
|
||||
g_Config.iRenderingMode = action->data().toInt();
|
||||
g_Config.bAutoFrameSkip = false;
|
||||
NativeMessageReceived("gpu_resized", "");
|
||||
}
|
||||
void autoframeskipAct() {
|
||||
g_Config.bAutoFrameSkip = !g_Config.bAutoFrameSkip;
|
||||
if (g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
|
||||
g_Config.iRenderingMode = FB_BUFFERED_MODE;
|
||||
if (g_Config.bSkipBufferEffects) {
|
||||
g_Config.bSkipBufferEffects = false;
|
||||
NativeMessageReceived("gpu_resized", "");
|
||||
}
|
||||
}
|
||||
@ -224,7 +218,7 @@ private:
|
||||
*textureScalingLevelGroup, *textureScalingTypeGroup,
|
||||
*screenScalingFilterGroup, *textureFilteringGroup,
|
||||
*frameSkippingTypeGroup, *frameSkippingGroup,
|
||||
*renderingModeGroup, *renderingResolutionGroup,
|
||||
*renderingResolutionGroup,
|
||||
*displayRotationGroup, *saveStateGroup;
|
||||
|
||||
std::queue<MainWindowMsg> msgQueue_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user