Fix size of wxGenericTreeCtrl buttons when using high DPI

Scale the image size by the DPI factor.

Closes #18674.
This commit is contained in:
Anton Triest 2020-02-23 01:45:54 +01:00 committed by Vadim Zeitlin
parent 8c574e5c2b
commit 3a9b5001ce

View File

@ -2854,8 +2854,8 @@ wxGenericTreeCtrl::PaintLevel(wxGenericTreeItem *item,
}
else // no custom buttons
{
static const int wImage = 9;
static const int hImage = 9;
const int wImage = FromDIP(9);
const int hImage = FromDIP(9);
int flag = 0;
if (item->IsExpanded())