Minor cleanup, and thanks for the fix, Rudolf! :-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17296 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-05-02 14:17:47 +00:00
parent b034a8a36c
commit c923ce2ed2
+3 -4
View File
@@ -977,10 +977,9 @@ BBitmap::_InitObject(BRect bounds, color_space colorSpace, uint32 flags,
if (allocationFlags & kFramebuffer) {
// 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;
// bytes per row might be modified to match hardware constraints
link.Read<int32>(&bytesPerRow);
size = bytesPerRow * (bounds.IntegerHeight() + 1);
}
if (fServerArea >= B_OK) {