fixed Vadim's removal of XPM handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -60,6 +60,13 @@ void wxInitAllImageHandlers()
|
|||||||
wxImage::AddHandler( new wxCURHandler );
|
wxImage::AddHandler( new wxCURHandler );
|
||||||
wxImage::AddHandler( new wxANIHandler );
|
wxImage::AddHandler( new wxANIHandler );
|
||||||
#endif
|
#endif
|
||||||
|
#if wxUSE_XPM && (defined(__WXGTK__) || defined(__WXMOTIF__))
|
||||||
|
// NB: keep this #ifdef in sync with the one in image.cpp
|
||||||
|
// (wxImage::InitStandardHandlers) - they must complement each other
|
||||||
|
// so that there's always exactly one XPM handler added after calling
|
||||||
|
// wxInitAllImageHandlers()
|
||||||
|
wxImage::AddHandler( new wxXPMHandler );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_IMAGE
|
#endif // wxUSE_IMAGE
|
||||||
|
@@ -1269,6 +1269,9 @@ void wxImage::InitStandardHandlers()
|
|||||||
#endif // wxUSE_STREAMS
|
#endif // wxUSE_STREAMS
|
||||||
|
|
||||||
#if wxUSE_XPM && !defined(__WXGTK__) && !defined(__WXMOTIF__)
|
#if wxUSE_XPM && !defined(__WXGTK__) && !defined(__WXMOTIF__)
|
||||||
|
// NB: keep this #ifdef in sync with the one in imagall.cpp -
|
||||||
|
// they must complement each other so that there's always exactly
|
||||||
|
// one XPM handler added after calling wxInitAllImageHandlers()
|
||||||
AddHandler(new wxXPMHandler);
|
AddHandler(new wxXPMHandler);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user