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) {
|
if (allocationFlags & kFramebuffer) {
|
||||||
// the base pointer will now point to an overlay_client_data structure
|
// the base pointer will now point to an overlay_client_data structure
|
||||||
link.Read<int32>(&fBytesPerRow);
|
// bytes per row might be modified to match hardware constraints
|
||||||
size = fBytesPerRow * (bounds.IntegerHeight() + 1);
|
link.Read<int32>(&bytesPerRow);
|
||||||
// bytes_per_row might be modified to match hardware constraints
|
size = bytesPerRow * (bounds.IntegerHeight() + 1);
|
||||||
bytesPerRow = fBytesPerRow;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fServerArea >= B_OK) {
|
if (fServerArea >= B_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user