From debd3f338b7e13dc03f384efe96d2f1c0aa402de Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 24 Mar 2022 18:17:26 +0100 Subject: [PATCH] Use high DPI icons in wxInfoBarGeneric if appropriate Just switch to using wxArtProvider::GetBitmapBundle() instead of GetBitmap() which returned standard-sized bitmap that was upscaled later. See #18822. --- src/generic/infobar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/infobar.cpp b/src/generic/infobar.cpp index 889e3ab8dd..7705319626 100644 --- a/src/generic/infobar.cpp +++ b/src/generic/infobar.cpp @@ -224,7 +224,7 @@ void wxInfoBarGeneric::ShowMessage(const wxString& msg, int flags) } else // do show an icon { - m_icon->SetBitmap(wxArtProvider::GetBitmap( + m_icon->SetBitmap(wxArtProvider::GetBitmapBundle( wxArtProvider::GetMessageBoxIconId(flags), wxART_BUTTON)); m_icon->Show();