<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - LibreOffice text blurry on Retina displays on macOS 11"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138122#c97">Comment # 97</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - LibreOffice text blurry on Retina displays on macOS 11"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138122">bug 138122</a>
from <span class="vcard"><a class="email" href="mailto:lupurus@web.de" title="lupurus@web.de">lupurus@web.de</a>
</span></b>
<pre>(In reply to Tor Lillqvist from <a href="show_bug.cgi?id=138122#c94">comment #94</a>)
<span class="quote">> 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.</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>