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:
@@ -1146,6 +1146,7 @@ DrawingEngine::ReadBitmap(ServerBitmap *bitmap, bool drawCursor, BRect bounds)
|
|||||||
|
|
||||||
BRect clip(0, 0, buffer->Width() - 1, buffer->Height() - 1);
|
BRect clip(0, 0, buffer->Width() - 1, buffer->Height() - 1);
|
||||||
bounds = bounds & clip;
|
bounds = bounds & clip;
|
||||||
|
fGraphicsCard->HideSoftwareCursor(bounds);
|
||||||
|
|
||||||
int32 bytesPerRow = buffer->BytesPerRow();
|
int32 bytesPerRow = buffer->BytesPerRow();
|
||||||
int32 bitsLength = bytesPerRow * (bounds.IntegerHeight() + 1);
|
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,
|
status_t result = bitmap->ImportBits(bits, bitsLength, bytesPerRow,
|
||||||
buffer->ColorSpace());
|
buffer->ColorSpace());
|
||||||
|
|
||||||
|
if (drawCursor) {
|
||||||
|
// ToDo: blend the cursor
|
||||||
|
}
|
||||||
|
|
||||||
|
fGraphicsCard->ShowSoftwareCursor();
|
||||||
Unlock();
|
Unlock();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user