mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-25 05:53:46 -04:00
added a plausibility check to the dpi calculation
This commit is contained in:
parent
1b032b7975
commit
fa9f57f6dc
@ -379,6 +379,7 @@ public final class Keys {
|
||||
int widthInInch = widthInPixel / dpi;
|
||||
// most people don't use a screen larger than 27 inch, so the resolution is presumably wrong
|
||||
if (widthInInch > 27)
|
||||
// assume a 27 inch screen
|
||||
dpi = widthInPixel / 27;
|
||||
|
||||
return dpi;
|
||||
|
Loading…
x
Reference in New Issue
Block a user