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

--- Comment #119 from Thorsten Wagner <thorsten.wagne...@gmail.com> ---
Some first results: Text is sharp now within dropdown windows and within
application windows (Writer, Calc, etc.) on retina displays too.

I am currently preparing a first revision of patch for testing (not for
committing). Patch will include the following:

(1) Removal of path to handle application as being linked again 10.13 SDK

(2) salvd.cxx: Refactoring/rework of AquaSalVirtualDevice::SetSize to use quad
storage size for retina displays

(3) salgdicommon.cxx: Refactoring/rework of AquaSalGraphics::SetVirDevGraphics
to apply double scaling to virtual devices too

(4) salgdicommon.cxx: Refactoring/rework of AquaSalGraphics::copyBits and
AquaSalGraphics::copyArea to use a new unified method
AquaSalGraphics:copyScaledArea to handle sources from scaled virtual devices as
well

(5) salbmp.cxx: Workaround for QuartzSalBitmap to downsample bitmaps from
scaled layers (this workaround has still to be replaced by an implementation of
scaled bitmaps)

(6) Environment variable VCL_FORCE_WINDOW_SCALING to activate window scaling on
non retina displays too (should look the same as without window scaling, but
very useful for testing on a non retina display)

Bitmap workaround causes blurry bitmap representations on retina displays as on
non retina displays as well. This is desired for now, because implementation of
scaling-aware bitmaps has still to be done. On retina displays it looks similar
as on Mojave or Catalina.

After patch has been tested especially according to unwanted side effects,
following steps have to be done:

(1) QuartzSalBitmap has to be extened to handle bitmaps from scaled sources,
workaround has to be removed afterwards

(2) Environment variable VCL_FORCE_WINDOW_SCALING has to be removed and
replaced by a scaling of 2.0f on macOS (and by a scaling from the main display
on IOS). After application, windows are able to be moved between retina and non
retina displays without showing blurry text again.

I will post a link to the patch here as soon as it is ready for testing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to