diff --git a/src/generic/splash.cpp b/src/generic/splash.cpp index 9d52d9aad4..c1227d329d 100644 --- a/src/generic/splash.cpp +++ b/src/generic/splash.cpp @@ -75,7 +75,7 @@ wxSplashScreen::wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int mil m_window = new wxSplashScreenWindow(bitmap, this, wxID_ANY, pos, size, wxNO_BORDER); - SetClientSize(bitmap.GetWidth(), bitmap.GetHeight()); + SetClientSize(bitmap.GetScaledWidth(), bitmap.GetScaledHeight()); if (m_splashStyle & wxSPLASH_CENTRE_ON_PARENT) CentreOnParent(); @@ -176,7 +176,7 @@ static void wxDrawSplashBitmap(wxDC& dc, const wxBitmap& bitmap, int WXUNUSED(x) #endif // USE_PALETTE_IN_SPLASH dcMem.SelectObjectAsSource(bitmap); - dc.Blit(0, 0, bitmap.GetWidth(), bitmap.GetHeight(), &dcMem, 0, 0, wxCOPY, + dc.Blit(0, 0, bitmap.GetScaledWidth(), bitmap.GetScaledHeight(), &dcMem, 0, 0, wxCOPY, true /* use mask */); dcMem.SelectObject(wxNullBitmap);