Fix minor issue on display layout screen

This commit is contained in:
Henrik Rydgård
2026-02-01 14:19:51 +01:00
parent fb4d2a0f3f
commit 62d1c05ca2
+3 -1
View File
@@ -304,7 +304,9 @@ void DisplayLayoutScreen::CreateViews() {
rightColumn->Add(new ItemHeader(gr->T("Display rotation")));
rightColumn->Add(rotation);
rightColumn->Add(new CheckBox(&config.bRotateControlsWithScreen, gr->T("Rotate controls")));
rightColumn->Add(new CheckBox(&config.bRotateControlsWithScreen, gr->T("Rotate controls")))->SetEnabledFunc([&config]() -> bool {
return (!g_Config.bSkipBufferEffects || g_Config.bSoftwareRendering) && config.iInternalScreenRotation != 1;
});
rightColumn->Add(new Spacer(12.0f));