From c923ce2ed200a98aee0d7b12645d36c93e0edd13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 2 May 2006 14:17:47 +0000 Subject: [PATCH] Minor cleanup, and thanks for the fix, Rudolf! :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17296 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Bitmap.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/kits/interface/Bitmap.cpp b/src/kits/interface/Bitmap.cpp index 0cfffddfdc..5d6caba257 100644 --- a/src/kits/interface/Bitmap.cpp +++ b/src/kits/interface/Bitmap.cpp @@ -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(&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(&bytesPerRow); + size = bytesPerRow * (bounds.IntegerHeight() + 1); } if (fServerArea >= B_OK) {