From 1759c4913394381b22d14e78275d3a6f4a0d18e2 Mon Sep 17 00:00:00 2001 From: David Webster Date: Wed, 8 May 2002 05:22:36 +0000 Subject: [PATCH] More of the same. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/os2/bitmap.h | 4 +++- src/os2/bitmap.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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();