Fix size of wxGenericTreeCtrl buttons when using high DPI
Scale the image size by the DPI factor. Closes #18674.
This commit is contained in:
committed by
Vadim Zeitlin
parent
8c574e5c2b
commit
3a9b5001ce
@@ -2854,8 +2854,8 @@ wxGenericTreeCtrl::PaintLevel(wxGenericTreeItem *item,
|
|||||||
}
|
}
|
||||||
else // no custom buttons
|
else // no custom buttons
|
||||||
{
|
{
|
||||||
static const int wImage = 9;
|
const int wImage = FromDIP(9);
|
||||||
static const int hImage = 9;
|
const int hImage = FromDIP(9);
|
||||||
|
|
||||||
int flag = 0;
|
int flag = 0;
|
||||||
if (item->IsExpanded())
|
if (item->IsExpanded())
|
||||||
|
Reference in New Issue
Block a user