From a97ee677a7e7721c927105c0676523e86dba58f3 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 5 Mar 2006 14:41:52 +0000 Subject: [PATCH] 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 --- src/servers/app/drawing/DrawingEngine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/servers/app/drawing/DrawingEngine.cpp b/src/servers/app/drawing/DrawingEngine.cpp index 2e42cd41dc..f20930b087 100644 --- a/src/servers/app/drawing/DrawingEngine.cpp +++ b/src/servers/app/drawing/DrawingEngine.cpp @@ -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; }