https://github.com/wxWidgets/wxWidgets/pull/25868
(4 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@vadz commented on this pull request.
As I said, I'd rather stop using wxImageList
completely, but as long as don't have any alternative here, I don't see any problem with adding this.
> @@ -480,9 +480,14 @@ class wxRibbonBar : public wxRibbonControl Return the image list containing images of the given size, creating it if necessary. + @param size The size of the images going into this image list. + @param initialCount The initial number of images to reserve for the + image list.⬇️ Suggested change
- image list. + image list (this parameter is available since wxWidgets 3.3.2).
> @since 3.1.4 */ - wxImageList* GetButtonImageList(wxSize size); + wxImageList* GetButtonImageList(wxSize size, int initialCount);⬇️ Suggested change
- wxImageList* GetButtonImageList(wxSize size, int initialCount); + wxImageList* GetButtonImageList(wxSize size, int initialCount = 1);
> { // Prevent from storing negative dimensions m_size = wxSize(wxMax(width, 0), wxMax(height, 0)); m_useMask = mask; + m_images.reserve(initialCount);
Maybe
⬇️ Suggested change- m_images.reserve(initialCount); + if ( initialCount > 1 ) + m_images.reserve(initialCount);
to avoid a useless (I believe) call by default?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.