Remove check for a supplied bytesPerRow < 0. Negative values are valid and
indicate that a default bytes per row for a certain color space and width should be used (B_ANY_BYTES_PER_ROW). Fixes CID 55. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4a47b14ea4
commit
e55f4dd23c
@ -666,7 +666,7 @@ BBitmap::ImportBits(const void *data, int32 length, int32 bpr,
|
||||
if (InitCheck() != B_OK)
|
||||
return B_NO_INIT;
|
||||
|
||||
if (!data || length < 0 || bpr < 0 || width < 0 || height < 0)
|
||||
if (!data || length < 0 || width < 0 || height < 0)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
if (bpr < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user