fix a bug in the test which was corrupting 1 byte beyond wxImage buffer

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-07-23 23:23:23 +00:00
parent cc1b761a57
commit 60235673ec

View File

@@ -70,7 +70,9 @@ void ImageRawTestCase::RGBImage()
for ( int x = 0; x < WIDTH; x++ ) 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; ++p;
} }