From f1fb383d6f235551543bc85e6bbbf3c38dc0a7a4 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 3 Mar 2006 00:13:43 +0000 Subject: [PATCH] Small fix for the last commit. Next thing is color conversion using a subset of what is in Bitmap.cpp. Maybe the conversion functions should be put into a conversion class that can be used by the app_server too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16574 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/drawing/DrawingEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/drawing/DrawingEngine.cpp b/src/servers/app/drawing/DrawingEngine.cpp index d4ac81a325..79eaa471ea 100644 --- a/src/servers/app/drawing/DrawingEngine.cpp +++ b/src/servers/app/drawing/DrawingEngine.cpp @@ -1148,7 +1148,7 @@ DrawingEngine::ReadBitmap(ServerBitmap *bitmap, bool drawCursor, BRect bounds) bounds = bounds & clip; uint32 width = (bounds.IntegerWidth() + 1) * 4; - uint32 height = bounds.IntegerHeight() + 1; + uint32 height = bounds.IntegerHeight(); uint32 srcBytesPerRow = buffer->BytesPerRow(); uint32 dstBytesPerRow = bitmap->BytesPerRow(); uint8 *dst = (uint8 *)bitmap->Bits();