mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Handle inset adjustements on the C++ side, handle them better in the UI.
This commit is contained in:
1 parent
13698f81fb
commit
75453632f9
32 files changed
+210
-84
No files matched your search
@@ -282,11 +282,15 @@ void DisplayLayoutScreen::CreateViews() {
|
||||
supportsInsets = true;
|
||||
#endif
|
||||
// Hide insets option if no insets, or OS too old.
|
||||
float insetLeft = System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_LEFT);
|
||||
float insetRight = System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_RIGHT);
|
||||
float insetTop = System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_TOP);
|
||||
float insetBottom = System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_BOTTOM);
|
||||
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)) {
|
||||
insetLeft != 0.0f ||
|
||||
insetTop != 0.0f ||
|
||||
insetRight != 0.0f ||
|
||||
insetBottom != 0.0f) && (insetLeft != insetTop || insetRight != insetBottom)) {
|
||||
rightColumn->Add(new CheckBox(&config.bIgnoreScreenInsets, gr->T("Ignore camera notch when centering")));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user