Unverified Commit 44f8b922 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #6816 from mavlink/densityFudge

Limit pixel density fudge to Android only
parents b74609fe c1da073b
......@@ -58,18 +58,14 @@ Item {
if(QGroundControl.corePlugin.options.devicePixelDensity != 0) {
return QGroundControl.corePlugin.options.devicePixelDensity
}
//-- Apple returns proper values
if(isiOS || isMac) {
return Screen.pixelDensity
}
//-- Mobile is rather unreliable
if(isMobile) {
//-- Android is rather unreliable
if(isAndroid) {
// Lets assume it's unlikely you have a tablet over 300mm wide
if((Screen.width / Screen.pixelDensity) > 300) {
return Screen.pixelDensity * 2
}
}
//-- Still needs logical pixel density on Windows
//-- Let's use what the system tells us
return Screen.pixelDensity
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment