X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e50a139b44f096883f0739af5f26761b99161d6..03c6117e8f6c958c1bc2602132ded643fc703cbf:/tests/image/rawbmp.cpp diff --git a/tests/image/rawbmp.cpp b/tests/image/rawbmp.cpp index be37a83242..00f04e4f83 100644 --- a/tests/image/rawbmp.cpp +++ b/tests/image/rawbmp.cpp @@ -18,6 +18,8 @@ #pragma hdrstop #endif +#ifdef wxHAS_RAW_BITMAP + #ifndef WX_PRECOMP #endif // WX_PRECOMP @@ -68,7 +70,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; } @@ -82,3 +86,5 @@ void ImageRawTestCase::RGBImage() ASSERT_COL_EQUAL( 0, image.GetGreen(0, 1) ); ASSERT_COL_EQUAL( 0, image.GetGreen(1, 0) ); } + +#endif // wxHAS_RAW_BITMAP