mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Windows: Prevent applying -1 as inset space.
This commit is contained in:
parent
268df5aa6c
commit
fd0bf21215
@ -174,6 +174,11 @@ float System_GetPropertyFloat(SystemProperty prop) {
|
|||||||
return QApplication::primaryScreen()->logicalDotsPerInch();
|
return QApplication::primaryScreen()->logicalDotsPerInch();
|
||||||
case SYSPROP_DISPLAY_DPI:
|
case SYSPROP_DISPLAY_DPI:
|
||||||
return QApplication::primaryScreen()->physicalDotsPerInch();
|
return QApplication::primaryScreen()->physicalDotsPerInch();
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_LEFT:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_RIGHT:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_TOP:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_BOTTOM:
|
||||||
|
return 0.0f;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -337,6 +337,11 @@ float System_GetPropertyFloat(SystemProperty prop) {
|
|||||||
switch (prop) {
|
switch (prop) {
|
||||||
case SYSPROP_DISPLAY_REFRESH_RATE:
|
case SYSPROP_DISPLAY_REFRESH_RATE:
|
||||||
return g_RefreshRate;
|
return g_RefreshRate;
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_LEFT:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_RIGHT:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_TOP:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_BOTTOM:
|
||||||
|
return 0.0f;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -248,6 +248,11 @@ float System_GetPropertyFloat(SystemProperty prop) {
|
|||||||
return 60.f;
|
return 60.f;
|
||||||
case SYSPROP_DISPLAY_DPI:
|
case SYSPROP_DISPLAY_DPI:
|
||||||
return (float)ScreenDPI();
|
return (float)ScreenDPI();
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_LEFT:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_RIGHT:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_TOP:
|
||||||
|
case SYSPROP_DISPLAY_SAFE_INSET_BOTTOM:
|
||||||
|
return 0.0f;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user