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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user