зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1335465 - Default devPixelsPerPx to 1.5 for DPIs between 133 and 167 on GTK. r=karl
--HG-- extra : rebase_source : 4b778695d11340b485c1a0cfdf51104f79ca238e
This commit is contained in:
Родитель
1fdf03a9a3
Коммит
0b79fec9ef
|
@ -409,7 +409,7 @@ gfxPlatformGtk::GetDPIScale()
|
||||||
// scale on WINNT and at this ratio the advantages of larger rendering
|
// scale on WINNT and at this ratio the advantages of larger rendering
|
||||||
// outweigh the disadvantages from scaling and pixel mis-alignment.
|
// outweigh the disadvantages from scaling and pixel mis-alignment.
|
||||||
int32_t dpi = GetDPI();
|
int32_t dpi = GetDPI();
|
||||||
if (dpi < 144) {
|
if (dpi < 132) {
|
||||||
return 1.0;
|
return 1.0;
|
||||||
} else if (dpi < 168) {
|
} else if (dpi < 168) {
|
||||||
return 1.5;
|
return 1.5;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче