зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1bb9612250
Коммит
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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче