X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3096bd2fa7b88105bc54c08e3c878585de1a9b91..ef8d96c29c73b9da8cdaa2b8b4737862c85ccc20:/src/msw/pnghand.cpp?ds=sidebyside diff --git a/src/msw/pnghand.cpp b/src/msw/pnghand.cpp index 833dd0a0f2..543e96f6a2 100644 --- a/src/msw/pnghand.cpp +++ b/src/msw/pnghand.cpp @@ -313,8 +313,9 @@ bool wxPNGReader::InstantiateBitmap(wxBitmap *bitmap) bitmap->SetDepth(GetDepth()); if ( GetDepth() > 1 && Palette ) bitmap->SetPalette(*Palette); +#if WXWIN_COMPATIBILITY_2 bitmap->SetOk(TRUE); - +#endif // WXWIN_COMPATIBILITY_2 // Make a mask if appropriate if ( bgindex > -1 )