Fix size of wxGenericTreeCtrl buttons when using high DPI
Scale the image size by the DPI factor. Closes #18674.
This commit is contained in:
parent
8c574e5c2b
commit
3a9b5001ce
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user