Create wxBitmap compatible with wxDC only for wxMSW

Ctor creating wxBitmap compatible with wxDC is available only for wxMSW.
This commit is contained in:
Artur Wieczorek
2022-04-10 14:17:33 +02:00
parent 891e6a26a3
commit 254e1afea5

View File

@@ -1891,7 +1891,11 @@ void wxImageFileProperty::OnCustomPaint( wxDC& dc,
{
wxImage imgScaled = m_image;
imgScaled.Rescale(rect.width, rect.height);
#ifdef __WSMSW__
m_bitmap = wxBitmap(imgScaled, dc);
#else
m_bitmap = wxBitmap(imgScaled);
#endif
}
}