after upgrading to wx 3.2.1 i have an issue with the splash screen. The splash is shaped is created from a BMP with black (0/0/0) selected as transparent:
Code: Select all
bitmap.LoadFile(getResourceFilePath(splashfile), wxBITMAP_TYPE_BMP)
wxMask* mask = new wxMask(bitmap, wxColour(0u, 0u, 0u));
bitmap.SetMask(mask);
wxRegion path(bitmap);
//
// add splash
long splashstyle = wxSPLASH_CENTRE_ON_SCREEN | wxSPLASH_TIMEOUT;
splash = new wxSplashScreen(
bitmap, splashstyle,
8000, wxGetApp().getFrame(), ID_SPLASH, wxDefaultPosition, wxDefaultSize, wxNO_BORDER | wxSTAY_ON_TOP | wxFRAME_SHAPED);
splash->SetShape(path);
Actually everything works as expected, but under win10 with Intel GFX, for a short moment (ca. 1 second) the transparency is all black, then the transparent parts become transparent. this does not happen under linux or win/amd. Did not test other. With wx28 it worked as expected. Did anyone experience something similar?
Oh, and does wx 3.2 support alpha in splashes e.g. when using a .png?
Best wishes,
Heiner