* 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:
Michael Pfeiffer 2008-09-05 13:39:06 +00:00
parent eaaafdc55f
commit b5c0078dc0
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ PictureTest::IsSame(BBitmap *bitmap1, BBitmap *bitmap2, BString &reason)
size_t rowAlignment;
size_t pixelChunk;
size_t pixelsPerChunk;
if (get_pixel_size_for(bitmap1->ColorSpace(), &rowAlignment, &pixelChunk,
if (get_pixel_size_for(bitmap1->ColorSpace(), &pixelChunk, &rowAlignment,
&pixelsPerChunk) != B_OK) {
reason = "get_pixel_size_for() not supported for this color space";
return false;