1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00

Fix for UI scale in macOS Catalina, running with 4K/Retina displays.

This commit is contained in:
Carlos A. Leguizamón 2020-12-07 00:57:22 -03:00
parent ab4ce86056
commit 6d3fbe23a4

View file

@ -531,7 +531,7 @@ void sub__glrender(int32 method){
#ifdef QB64_MACOSX
if (scale_factor==0) {
scale_factor=1;
if (system("system_profiler SPDisplaysDataType | grep Retina")==0 || system("system_profiler SPDisplaysDataType | grep 5K")==0) scale_factor=2;
if ((system("sw_vers -productVersion | grep -E '^(10\.15\.)'") == 0) && ((system("system_profiler SPDisplaysDataType | grep Retina") == 0) || (system("system_profiler SPDisplaysDataType | grep 5K") == 0))) scale_factor=2;
}
#else
scale_factor=1;