From d72a3f7cecd1df5f1da946e11ad7ada7b3edba42 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 15 Apr 2022 10:12:41 +0200 Subject: [PATCH] Create wxBitmap compatible with wxDC for all ports Ctor creating wxBitmap compatible with wxDC is now implemented in all ports. --- src/propgrid/advprops.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index 13b58a582c..c8cfcfd91e 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -1891,11 +1891,7 @@ void wxImageFileProperty::OnCustomPaint( wxDC& dc, { wxImage imgScaled = m_image; imgScaled.Rescale(rect.width, rect.height); -#ifdef __WXMSW__ m_bitmap = wxBitmap(imgScaled, dc); -#else - m_bitmap = wxBitmap(imgScaled); -#endif } }