added relaying updated bytes_per_row to BBitmap's properties in case a bitmap was created in the graphics memory (ie: overlay bitmaps). Now not only a bitmap's size is updated, but also the bytes_per_row property itself. Axel, please review and correct as needed. Thanks.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17295 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen 2006-05-02 13:33:22 +00:00
parent 797de116a2
commit b034a8a36c

View File

@ -979,6 +979,8 @@ BBitmap::_InitObject(BRect bounds, color_space colorSpace, uint32 flags,
// the base pointer will now point to an overlay_client_data structure
link.Read<int32>(&fBytesPerRow);
size = fBytesPerRow * (bounds.IntegerHeight() + 1);
// bytes_per_row might be modified to match hardware constraints
bytesPerRow = fBytesPerRow;
}
if (fServerArea >= B_OK) {