mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 11:52:05 +00:00
Fix BitmapComboBox for wxWidgets 3.3 (wxBitmap -> wxBitmapBundle)
In wxWidgets 3.3, wxBitmapComboBoxBase::OnAddBitmap changed its parameter from const wxBitmap& to const wxBitmapBundle&, and m_bitmaps was replaced by m_bitmapbundles. Update OnAddBitmap signature and OnDrawItem to use wxBitmapBundle, extracting wxBitmap via GetBitmap(GetDefaultSize()) where needed.
This commit is contained in:
@@ -47,7 +47,7 @@ protected:
|
||||
* For this purpose control drawing methods and
|
||||
* control size calculation methods (virtual) are overridden.
|
||||
**/
|
||||
bool OnAddBitmap(const wxBitmap& bitmap) override;
|
||||
bool OnAddBitmap(const wxBitmapBundle& bitmap) override;
|
||||
void OnDrawItem(wxDC& dc, const wxRect& rect, int item, int flags) const override;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user