Windows: Prevent applying -1 as inset space.
This commit is contained in:
parent
268df5aa6c
commit
fd0bf21215
3 changed files with 15 additions and 0 deletions
|
@ -174,6 +174,11 @@ float System_GetPropertyFloat(SystemProperty prop) {
|
|||
return QApplication::primaryScreen()->logicalDotsPerInch();
|
||||
case SYSPROP_DISPLAY_DPI:
|
||||
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:
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue