mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1227544 - Scaling on 720p devices is broken. r=timdream
Fix the scaling logic for 280-300dpi devices Some xhdpi devices have real densities as low as 287dpi but these devices are far too small to have an hdpi UI. Signed-off-by: Adam Farden <adam@farden.cz>
This commit is contained in:
parent
1bb9612250
commit
c6b0b264c6
@ -750,7 +750,7 @@ nsWindow::GetDefaultScaleInternal()
|
||||
if (dpi < 200.0) {
|
||||
return 1.0; // mdpi devices.
|
||||
}
|
||||
if (dpi < 300.0) {
|
||||
if (dpi < 280.0) {
|
||||
return 1.5; // hdpi devices.
|
||||
}
|
||||
// xhdpi devices and beyond.
|
||||
|
Loading…
Reference in New Issue
Block a user