https://bugs.documentfoundation.org/show_bug.cgi?id=115439

--- Comment #48 from V Stuart Foote <[email protected]> ---
(In reply to bugzilla2 from comment #47)
> And can you explain that sentence further:
> "The mechanism for "detection" of HiDPI is "thresholded" at 168 dpi."
> I'm not sure what that means.

See the source for CountDPIScaleFactor() [1]. It previously was a single
threshold of >168dpi; and that got changed to a mix of dpi and scale factor for
bug 100164 for non-macOS builds with [2]

So current thresholding is:

  nDPI > 216
     250 (so 2.5x)
  nDPI > 168
     200 (so 2.0x)
  nDPI > 120
     150 (so 1.5x)
  otherwise 
     100 (or unscaled)

IIUC macOS passes usable dpi details, so does not need the mixed dpi & scale
percentage.

Also the nDPI is not the actual hardware provided dpi, rather it is a
calculated dpi that the os/DE is reporting--e.g. on Windows the Custom Scaling
value, or with use of fractional scaling on your Linux DE. 

=-ref-=
[1]
https://opengrok.libreoffice.org/xref/core/vcl/source/window/window.cxx?a=true&r=1df81daa&h=924#919

[2] https://gerrit.libreoffice.org/c/core/+/30379/

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to