]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/image/rawbmp.cpp
Corrected border drawing to avoid clipping
[wxWidgets.git] / tests / image / rawbmp.cpp
index 00d50b2243662ee8c8d918cbae0699f3ebbdeb72..e2cafad32f890935ed6fab234f8ef39b49ddad27 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     Test for using raw bitmap access classes with wxImage
 // Author:      Vadim Zeitlin
 // Created:     2008-05-30
-// RCS-ID:      $Id$
 // Copyright:   (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -70,7 +69,9 @@ void ImageRawTestCase::RGBImage()
 
         for ( int x = 0; x < WIDTH; x++ )
         {
-            p.Data() = (x + y) % 2 ? 0 : -1;
+            p.Red() =
+            p.Green() =
+            p.Blue() = (x + y) % 2 ? 0 : -1;
             ++p;
         }