Add wxImage::Scale() and Rescale() overloads taking wxSize

Use them in the code where this is more convenient than using individual
components.

No real changes, just make resizing the images a bit more convenient.
This commit is contained in:
Vadim Zeitlin
2025-02-19 01:54:24 +01:00
parent d66d92fea6
commit 71afe63679
14 changed files with 31 additions and 16 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
// do not scale on already small screens
if (!m_isPda)
image.Rescale( bitmap.GetWidth()/2, bitmap.GetHeight()/2 );
image.Rescale(bitmap.GetSize()/2);
bitmap = wxBitmap(image);
wxSplashScreen *splash = new wxSplashScreen(bitmap,