From c4dc0353cc45ec736aa2c47bf8f54e5735584edb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 23 Apr 2022 15:04:25 +0200 Subject: [PATCH] Fix wxGTK1 build after adding wxBitmap(wxImage, wxDC) ctor This fixes a compilation problem introduced in 24970061fa (Add wxBitmap(wxImage, wxDC) ctor to all ports, 2022-04-12). --- include/wx/gtk1/bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/gtk1/bitmap.h b/include/wx/gtk1/bitmap.h index 8c3111d588..f8b1d14912 100644 --- a/include/wx/gtk1/bitmap.h +++ b/include/wx/gtk1/bitmap.h @@ -69,7 +69,7 @@ public: wxBitmap( const char* const* bits ); wxBitmap( const wxString &filename, wxBitmapType type = wxBITMAP_DEFAULT_TYPE ); wxBitmap( const wxImage& image, int depth = -1, double WXUNUSED(scale) = 1.0 ) { (void)CreateFromImage(image, depth); } - wxBitmap( const wxImage& image, const wxDC& WXUNUSED(dc) ) { (void)CreateFromImage(image); } + wxBitmap( const wxImage& image, const wxDC& WXUNUSED(dc) ) { (void)CreateFromImage(image, -1); } explicit wxBitmap(const wxCursor& cursor); virtual ~wxBitmap();