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:
@@ -1123,7 +1123,7 @@ DrawingEngine::ReadBitmap(ServerBitmap *bitmap, bool drawCursor, BRect bounds)
|
|||||||
{
|
{
|
||||||
CRASH_IF_NOT_EXCLUSIVE_LOCKED
|
CRASH_IF_NOT_EXCLUSIVE_LOCKED
|
||||||
|
|
||||||
RenderingBuffer *buffer = fGraphicsCard->DrawingBuffer();
|
RenderingBuffer *buffer = fGraphicsCard->FrontBuffer();
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user