Sneak in a critical bugfix in config loading, oops. Also fix minor bug reported by oltolm.

This commit is contained in:
Henrik Rydgård
2025-11-05 20:29:12 +01:00
parent 245927b360
commit eab2cc85bc
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -274,10 +274,11 @@ void DisplayLayoutScreen::CreateViews() {
supportsInsets = true;
#endif
// Hide insets option if no insets, or OS too old.
if (supportsInsets && System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_LEFT) != 0.0f ||
if (supportsInsets &&
(System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_LEFT) != 0.0f ||
System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_TOP) != 0.0f ||
System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_RIGHT) != 0.0f ||
System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_BOTTOM) != 0.0f) {
System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_BOTTOM) != 0.0f)) {
rightColumn->Add(new CheckBox(&config.bIgnoreScreenInsets, gr->T("Ignore camera notch when centering")));
}