On Thu, Oct 9, 2014 at 10:31 PM, <giuseppe.bilo...@gmail.com> wrote: > I recently got a HiDPI monitor (15" at 3200x1800, 234 dpi) and I noticed > that Firefox (32) doesn't automatically scale UI/content to take advantage > of the hidpi, with the result that stuff renders uncomfortably small by > default. If I manually set devPixelsPerPx to 2, I seem to get a reasonable > UI and content scaling. > > I've perused the source code and did a little bit of debugging, and while > the DPI is detected correctly (nsWindow::GetDPI returns 234), no scaling > factor is set from this. I've tracked this to the fact that nsWindow in > Linux does not reimplement GetDefaultScaleInternal(). > > Since the patch to implement this is rather trivial, I'm attaching a > preliminary version to this post. Still, I was wondering: was the omission > intentional (e.g. because other means should be used on Linux for this, and > I just happen to have a set-up where this is not detected)? >
We should really follow what GTK does. E.g. whatever scale factor GTK uses for system/application icons by default, we should match it. Icons in the Firefox UI should use the same scaling as icons in native/system apps. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o o‘oRoaocoao,o’o oioso oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo owohooo osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro ooofo otohoeo ofoioroeo ooofo ohoeololo. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform