From 8a1c136e4766b52aeeabbaebb59544f4275db1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 10 Mar 2008 15:32:01 +0000 Subject: [PATCH] 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 --- src/servers/app/drawing/DrawingEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/drawing/DrawingEngine.cpp b/src/servers/app/drawing/DrawingEngine.cpp index 2a01f2d99e..326318ff96 100644 --- a/src/servers/app/drawing/DrawingEngine.cpp +++ b/src/servers/app/drawing/DrawingEngine.cpp @@ -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;