Use the front buffer for screenshots always, otherwise we don't get the contents

of BDirectWindows for setups where the app_server uses double buffering mode.
I didn't test the change, but the way the cursor is optionally copied into
the bitmap (which might now be not 32 bpp) looks very flexible.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24346 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-03-10 15:32:01 +00:00
parent 688c14266c
commit 8a1c136e47
+1 -1
View File
@@ -1123,7 +1123,7 @@ DrawingEngine::ReadBitmap(ServerBitmap *bitmap, bool drawCursor, BRect bounds)
{
CRASH_IF_NOT_EXCLUSIVE_LOCKED
RenderingBuffer *buffer = fGraphicsCard->DrawingBuffer();
RenderingBuffer *buffer = fGraphicsCard->FrontBuffer();
if (!buffer)
return B_ERROR;