compilation fixes (apparently, gcc <3.4 didn't validate code in templates that were...
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 1 May 2004 22:13:02 +0000 (22:13 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 1 May 2004 22:13:02 +0000 (22:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/rawbmp.h

index 105c85714cfdc286c119da95be01d7edb45ad0d5..2291b6b54482d85a4c381c833c3e898c6773f6d2 100644 (file)
@@ -388,9 +388,9 @@ struct WXDLLEXPORT wxPixelDataOut<wxImage>
             // -----------
 
             // access to invidividual colour components
-            ChannelType& Red() { return m_ptr[PixelFormat::RED]; }
-            ChannelType& Green() { return m_ptr[PixelFormat::GREEN]; }
-            ChannelType& Blue() { return m_ptr[PixelFormat::BLUE]; }
+            ChannelType& Red() { return m_pRGB[PixelFormat::RED]; }
+            ChannelType& Green() { return m_pRGB[PixelFormat::GREEN]; }
+            ChannelType& Blue() { return m_pRGB[PixelFormat::BLUE]; }
             ChannelType& Alpha() { return *m_pAlpha; }
 
         // private: -- see comment in the beginning of the file
@@ -426,7 +426,7 @@ struct WXDLLEXPORT wxPixelDataOut<wxImage>
         {
             m_stride = Iterator::SizePixel * m_width;
 
-            InitRect(rect.GetPositions(), rect.GetSize());
+            InitRect(rect.GetPosition(), rect.GetSize());
         }
 
         // we evaluate to true only if we could get access to bitmap data