mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-01 03:57:17 +01:00
Apply rounded corners to all Choices by default, apply proper group rounding in many places.
This commit is contained in:
1 parent
038e4b67ca
commit
ad132d8f1b
15 files changed
+131
-77
No files matched your search
@@ -324,7 +324,7 @@ void DisplayLayoutScreen::CreateViews() {
|
||||
rightColumn->Add(new ItemHeader(gr->T("PSP display rotation")));
|
||||
|
||||
static const char *displayRotation[] = { "Landscape", "Portrait", "Landscape Reversed", "Portrait Reversed" };
|
||||
auto rotation = new PopupMultiChoice(&config.iInternalScreenRotation, gr->T("Rotation"), displayRotation, 1, ARRAY_SIZE(displayRotation), I18NCat::CONTROLS, screenManager());
|
||||
PopupMultiChoice *rotation = rightColumn->Add(new PopupMultiChoice(&config.iInternalScreenRotation, gr->T("Rotation"), displayRotation, 1, ARRAY_SIZE(displayRotation), I18NCat::CONTROLS, screenManager()));
|
||||
rotation->OnChoice.Add([this](UI::EventParams &) {
|
||||
// Affects the presence of the Stretch checkbox.
|
||||
RecreateViews();
|
||||
@@ -334,8 +334,6 @@ void DisplayLayoutScreen::CreateViews() {
|
||||
});
|
||||
rotation->SetHideTitle(true);
|
||||
|
||||
|
||||
rightColumn->Add(rotation);
|
||||
rightColumn->Add(new CheckBox(&config.bRotateControlsWithScreen, gr->T("Rotate controls")))->SetEnabledFunc([&config]() -> bool {
|
||||
return (!g_Config.bSkipBufferEffects || g_Config.bSoftwareRendering) && config.iInternalScreenRotation != 1;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user