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
This commit is contained in:
Michael Lotz 2006-03-03 00:13:43 +00:00
parent 3e2ee69551
commit f1fb383d6f

View File

@ -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();