* Used wrong argument order for pixelChunk and rowAlignment in get_pixel_size_for(), so bitmap comparison was wrong for a color spaces with bytes per pixel != 4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27336 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -292,7 +292,7 @@ PictureTest::IsSame(BBitmap *bitmap1, BBitmap *bitmap2, BString &reason)
|
|||||||
size_t rowAlignment;
|
size_t rowAlignment;
|
||||||
size_t pixelChunk;
|
size_t pixelChunk;
|
||||||
size_t pixelsPerChunk;
|
size_t pixelsPerChunk;
|
||||||
if (get_pixel_size_for(bitmap1->ColorSpace(), &rowAlignment, &pixelChunk,
|
if (get_pixel_size_for(bitmap1->ColorSpace(), &pixelChunk, &rowAlignment,
|
||||||
&pixelsPerChunk) != B_OK) {
|
&pixelsPerChunk) != B_OK) {
|
||||||
reason = "get_pixel_size_for() not supported for this color space";
|
reason = "get_pixel_size_for() not supported for this color space";
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user