[Libreoffice-bugs] [Bug 138122] LibreOffice text blurry on Retina displays on macOS 11
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 2 15:21:50 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=138122
--- Comment #97 from lupurus at web.de ---
(In reply to Tor Lillqvist from comment #94)
> How can that work? Surely correspondingly more space must be allocated for
> the pRawData in that case, too? The docs for CGBitmapContextCreate say:
>
> data
> A pointer to the destination in memory where the drawing is to be rendered.
> The size of this memory block should be at least (bytesPerRow*height) bytes.
>
> and the "height" parameter we pass with such a change is nDY * fScale, and
> bytesPerRow is (mnBitmapDepth * nDX) / 8, i.e. nDX * 4.
The interesting thing is: I get an error in the console:
'CGBitmapContextCreate: invalid data bytes/row: should be at least ...'
If I then say
const int nBytesPerRow = (mnBitmapDepth * nDX * fScale) / 8;
instead of
const int nBytesPerRow = (mnBitmapDepth * nDX) / 8;
the text gets blurred again.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201202/a944c2f7/attachment.htm>
More information about the Libreoffice-bugs
mailing list