[Git][wxwidgets/wxwidgets][master] 2 commits: Fix truncating bitmaps in the art provider resource browser

1 view
Skip to first unread message

Vadim Zeitlin (@_VZ_)

unread,
Dec 3, 2025, 9:49:48 AM (13 days ago) Dec 3
to wx-commi...@googlegroups.com

Vadim Zeitlin pushed to branch master at wxWidgets / wxWidgets

Commits:

  • 38b97d60
    by Vadim Zeitlin at 2025-12-01T19:51:29+01:00
    Fix truncating bitmaps in the art provider resource browser
    
    We need to redo the layout after changing the size of wxStaticBitmap,
    otherwise it wouldn't be effectively resized to its new size and could
    truncate the bitmap being shown in it if it's bigger than before.
    
  • 5881cc3d
    by Vadim Zeitlin at 2025-12-03T15:20:12+01:00
    Use FreeBSD 14.3 for Cirrus CI job
    
    14.2 image isn't available any more.
    

2 changed files:

Changes:

  • .cirrus.yml
    ... ... @@ -12,7 +12,7 @@ task:
    12 12
       matrix:
    
    13 13
         - name: Cirrus CI / FreeBSD wxGTK 3
    
    14 14
           freebsd_instance:
    
    15
    -        image_family: freebsd-14-2
    
    15
    +        image_family: freebsd-14-3
    
    16 16
           env:
    
    17 17
             osname: FreeBSD
    
    18 18
         - name: Cirrus CI / Debian ARM wxGTK 3
    

  • samples/artprov/artbrows.cpp
    ... ... @@ -262,5 +262,5 @@ void wxArtBrowserDialog::SetArtBitmap(const wxArtID& id, const wxArtClient& clie
    262 262
         m_canvas->SetSize(bmp.GetWidth(), bmp.GetHeight());
    
    263 263
         m_canvas->SetBitmap(bmp);
    
    264 264
         m_text->SetLabel(wxString::Format("Size: %d x %d", bmp.GetWidth(), bmp.GetHeight()));
    
    265
    -    Refresh();
    
    265
    +    Layout();
    
    266 266
     }

Reply all
Reply to author
Forward
0 new messages