Ignored palettes for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e604d44b4b
commit
25093cf311
@ -111,19 +111,25 @@ static void wxDrawSplashBitmap(wxDC& dc, const wxBitmap& bitmap, int x, int y)
|
||||
|
||||
bool hiColour = (wxDisplayDepth() >= 16) ;
|
||||
|
||||
#ifndef __WXGTK__
|
||||
if (bitmap.GetPalette() && !hiColour)
|
||||
{
|
||||
dc.SetPalette(* bitmap.GetPalette());
|
||||
dcMem.SetPalette(* bitmap.GetPalette());
|
||||
}
|
||||
#endif
|
||||
|
||||
dcMem.SelectObject(bitmap);
|
||||
dc.Blit(0, 0, bitmap.GetWidth(), bitmap.GetHeight(), & dcMem, 0, 0);
|
||||
dcMem.SelectObject(wxNullBitmap);
|
||||
|
||||
#ifndef __WXGTK__
|
||||
if (bitmap.GetPalette() && !hiColour)
|
||||
{
|
||||
dc.SetPalette(wxNullPalette);
|
||||
dcMem.SetPalette(wxNullPalette);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxSplashScreenWindow::OnEraseBackground(wxEraseEvent& event)
|
||||
|
Loading…
Reference in New Issue
Block a user