X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43543d985b04d065178df50dbbc998786ff97282..f61715c8528ceeb27e8eda112cdead7cfeac19d0:/src/os2/bitmap.cpp diff --git a/src/os2/bitmap.cpp b/src/os2/bitmap.cpp index 47a6cdd53c..5ffef72a4b 100644 --- a/src/os2/bitmap.cpp +++ b/src/os2/bitmap.cpp @@ -9,6 +9,10 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#ifdef __GNUG__ + #pragma implementation "bitmap.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -34,12 +38,10 @@ // macros // ---------------------------------------------------------------------------- -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject) IMPLEMENT_DYNAMIC_CLASS(wxMask, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject) -#endif // ============================================================================ // implementation @@ -187,9 +189,6 @@ wxBitmap::wxBitmap( wxLogLastError("GpiCreatePS Failure"); } - m_hDc = hDc; - m_hPs = hPs; - m_refData = pRefData; pRefData->m_nWidth = nTheWidth; @@ -345,6 +344,8 @@ bool wxBitmap::LoadFile( , long lType ) { + HPS hPs = NULLHANDLE; + UnRef(); wxBitmapHandler* pHandler = wxDynamicCast( FindHandler(lType) @@ -357,6 +358,7 @@ bool wxBitmap::LoadFile( return(pHandler->LoadFile( this ,rFilename + ,hPs ,lType , -1 , -1 @@ -744,6 +746,7 @@ bool wxBitmapHandler::Create( bool wxBitmapHandler::Load( wxGDIImage* pImage , const wxString& rName +, HPS hPs , long lFlags , int nWidth , int nHeight @@ -755,6 +758,7 @@ bool wxBitmapHandler::Load( return(pBitmap ? LoadFile( pBitmap ,rName + ,hPs ,lFlags ,nWidth ,nHeight @@ -792,6 +796,7 @@ bool wxBitmapHandler::Create( bool wxBitmapHandler::LoadFile( wxBitmap* WXUNUSED(pBitmap) , const wxString& WXUNUSED(rName) +, HPS WXUNUSED(hPs) , long WXUNUSED(lType) , int WXUNUSED(nDesiredWidth) , int WXUNUSED(nDesiredHeight)