Also, add pointer and underflow checks and proper wxDCClipper usage in other art providers, add descriptions for all of them to the help.
Old MSW provider:
image.png (view on web)New one:
image.png (view on web)https://github.com/wxWidgets/wxWidgets/pull/26253
(17 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.![]()
I'm not wild about the hard coded numbers throughout all three art providers, but that will be a separate battle for another day...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@vadz approved this pull request.
Thanks, I don't use ribbon myself but I guess it's a nice possibility for those who do, so I'll merge this soon.
> @@ -1948,7 +1951,7 @@ void wxRibbonMSWArtProvider::DrawPanelBackground(
{
// Room for some characters and ...
// Display as many characters as possible and append ...
- for(size_t len = label.Len() - 1; len >= 3; --len)
+ for( int len = static_cast<int>(label.Len()) - 1; len >= 3; --len )
Not sure why this had to be changed, but as long as it did, I'll at least use wxSsize() here instead of the cast.
—
Reply to this email directly, 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.![]()