[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
Sat Dec 5 17:24:03 UTC 2020


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

--- Comment #103 from lupurus at web.de ---
I came so far: 

1) The "normal" text in a Combobox is drawn in 

vcl/source/control/imp_listbox.cxx in

void ImplListBoxWindow::DrawEntry(vcl::RenderContext& rRenderContext, sal_Int32
nPos, bool bDrawImage, bool bDrawText)

in line 1728: rRenderContext.DrawText(aTextRect, aStr, nDrawStyle);

2) If you open the font combobox in the toolbar, this entry is using a
different method, it uses a custom draw method in

vcl/source/control/imp_listbox.cxx

void ImplListBoxWindow::ImplPaint(vcl::RenderContext& rRenderContext, sal_Int32
nPos)

in line 1641: 
UserDrawEvent aUDEvt(this, &rRenderContext, aRect, nPos, bSelected);
maUserDrawHdl.Call( &aUDEvt );

3) The style entry in the styles sidebar is a treeview and gets drawn in

vcl/source/treelist/treelistbox.cxx

void SvTreeListBox::DrawCustomEntry(vcl::RenderContext& rRenderContext, const
tools::Rectangle& rRect, const SvTreeListEntry& rEntry)

in line 2863: aCustomRenderHdl.Call(std::tuple<vcl::RenderContext&, const
tools::Rectangle&, const SvTreeListEntry&>(rRenderContext, rRect, rEntry));

(I cannot find, what function is calling DrawCustomEntry)

----------------

So the big question is: Why is 3) sharp and 2) not? They seem to do the same.
Maybe just the RenderContext is different?

-- 
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/20201205/0939e67f/attachment.htm>


More information about the Libreoffice-bugs mailing list