From 3a9b5001ce18f3259e46c01ea2911c3783689474 Mon Sep 17 00:00:00 2001 From: Anton Triest Date: Sun, 23 Feb 2020 01:45:54 +0100 Subject: [PATCH] Fix size of wxGenericTreeCtrl buttons when using high DPI Scale the image size by the DPI factor. Closes #18674. --- src/generic/treectlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 0109bf016d..9041ce101a 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -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())