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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user