From e99af740d9633d803befe4fb17912385fb101549 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Fri, 28 Apr 2017 23:04:46 +0200 Subject: [PATCH] Make wxArtProvider icon size hints DPI aware --- src/msw/artmsw.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/msw/artmsw.cpp b/src/msw/artmsw.cpp index 7c9e9894eb..eb7a6c4ec8 100644 --- a/src/msw/artmsw.cpp +++ b/src/msw/artmsw.cpp @@ -280,11 +280,11 @@ wxSize wxArtProvider::GetNativeSizeHint(const wxArtClient& client) { if ( client == wxART_TOOLBAR ) { - return wxSize(24, 24); + return wxWindow::FromDIP(wxSize(24, 24), NULL); } else if ( client == wxART_MENU ) { - return wxSize(16, 16); + return wxWindow::FromDIP(wxSize(16, 16), NULL); } else if ( client == wxART_FRAME_ICON ) { @@ -299,11 +299,11 @@ wxSize wxArtProvider::GetNativeSizeHint(const wxArtClient& client) } else if (client == wxART_BUTTON) { - return wxSize(16, 16); + return wxWindow::FromDIP(wxSize(16, 16), NULL); } else if (client == wxART_LIST) { - return wxSize(16, 16); + return wxWindow::FromDIP(wxSize(16, 16), NULL); } return wxDefaultSize;