Ensure that the cursor is not drawn (it was visible in single buffered mode). Drawing the cursor is not implemented yet.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16582 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2006-03-05 14:41:52 +00:00
parent acfad7920c
commit a97ee677a7
@@ -1146,6 +1146,7 @@ DrawingEngine::ReadBitmap(ServerBitmap *bitmap, bool drawCursor, BRect bounds)
BRect clip(0, 0, buffer->Width() - 1, buffer->Height() - 1);
bounds = bounds & clip;
fGraphicsCard->HideSoftwareCursor(bounds);
int32 bytesPerRow = buffer->BytesPerRow();
int32 bitsLength = bytesPerRow * (bounds.IntegerHeight() + 1);
@@ -1155,6 +1156,11 @@ DrawingEngine::ReadBitmap(ServerBitmap *bitmap, bool drawCursor, BRect bounds)
status_t result = bitmap->ImportBits(bits, bitsLength, bytesPerRow,
buffer->ColorSpace());
if (drawCursor) {
// ToDo: blend the cursor
}
fGraphicsCard->ShowSoftwareCursor();
Unlock();
return result;
}