File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,11 @@ float System_GetPropertyFloat(SystemProperty prop) {
174
174
return QApplication::primaryScreen ()->logicalDotsPerInch ();
175
175
case SYSPROP_DISPLAY_DPI:
176
176
return QApplication::primaryScreen ()->physicalDotsPerInch ();
177
+ case SYSPROP_DISPLAY_SAFE_INSET_LEFT:
178
+ case SYSPROP_DISPLAY_SAFE_INSET_RIGHT:
179
+ case SYSPROP_DISPLAY_SAFE_INSET_TOP:
180
+ case SYSPROP_DISPLAY_SAFE_INSET_BOTTOM:
181
+ return 0 .0f ;
177
182
default :
178
183
return -1 ;
179
184
}
Original file line number Diff line number Diff line change @@ -337,6 +337,11 @@ float System_GetPropertyFloat(SystemProperty prop) {
337
337
switch (prop) {
338
338
case SYSPROP_DISPLAY_REFRESH_RATE:
339
339
return g_RefreshRate;
340
+ case SYSPROP_DISPLAY_SAFE_INSET_LEFT:
341
+ case SYSPROP_DISPLAY_SAFE_INSET_RIGHT:
342
+ case SYSPROP_DISPLAY_SAFE_INSET_TOP:
343
+ case SYSPROP_DISPLAY_SAFE_INSET_BOTTOM:
344
+ return 0 .0f ;
340
345
default :
341
346
return -1 ;
342
347
}
Original file line number Diff line number Diff line change @@ -248,6 +248,11 @@ float System_GetPropertyFloat(SystemProperty prop) {
248
248
return 60 .f ;
249
249
case SYSPROP_DISPLAY_DPI:
250
250
return (float )ScreenDPI ();
251
+ case SYSPROP_DISPLAY_SAFE_INSET_LEFT:
252
+ case SYSPROP_DISPLAY_SAFE_INSET_RIGHT:
253
+ case SYSPROP_DISPLAY_SAFE_INSET_TOP:
254
+ case SYSPROP_DISPLAY_SAFE_INSET_BOTTOM:
255
+ return 0 .0f ;
251
256
default :
252
257
return -1 ;
253
258
}
You can’t perform that action at this time.
0 commit comments