diff --git a/include/wx/os2/bitmap.h b/include/wx/os2/bitmap.h index 72f44788e6..de14c11b1a 100644 --- a/include/wx/os2/bitmap.h +++ b/include/wx/os2/bitmap.h @@ -217,6 +217,8 @@ public: { return (GetBitmapData() ? GetBitmapData()->m_pSelectedInto : (wxDC*) NULL); } inline bool IsMono(void) const { return m_bIsMono; } + inline bool Flip(void) const { return m_bFlip; } + // An OS/2 version that probably doesn't do anything like the msw version wxBitmap GetBitmapForDC(wxDC& rDc) const; @@ -240,7 +242,7 @@ private: bool CopyFromIconOrCursor(const wxGDIImage& rIcon); bool m_bIsMono; - + bool m_bFlip; DECLARE_DYNAMIC_CLASS(wxBitmap) }; // end of CLASS wxBitmap diff --git a/src/os2/bitmap.cpp b/src/os2/bitmap.cpp index bd7ba156d6..2a88e27107 100644 --- a/src/os2/bitmap.cpp +++ b/src/os2/bitmap.cpp @@ -526,7 +526,7 @@ bool wxBitmap::CreateFromImage ( { wxCHECK_MSG(rImage.Ok(), FALSE, wxT("invalid image")); m_refData = new wxBitmapRefData(); - + m_bFlip = TRUE; int nSizeLimit = 1024 * 768 * 3; int nWidth = rImage.GetWidth();