[Lazarus] VirtualTreeView rendering on Cocoa

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Mar 12 13:34:52 CET 2019


On 12/03/2019 07:36, Andrea Mauri via lazarus wrote:
> well defined, quite blurry with respect to the other component (labels
> fonts, images...).
> Why?

It looks like VirtualTreeView is not Hi-DPI aware. Just a guess, but it
seems that it is generating the treeview rendering on a internal image
buffer (not hi-dpi sized), and then when blitting that to the actual
window canvas, the image gets scaled - hence the pixelation. I didn't
actually look at the the virtualtree code (it is *massive*), but what I
described is a common problem with custom drawn components.

Regards,
  Graeme



More information about the lazarus mailing list