From 6b97dd4e514d9478f512b102fe0f701dbfb63054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 3 Jan 2007 16:36:04 +0000 Subject: [PATCH] Looks like DrawingEngine::ContrainClippingRegion() no longer copies the region passed in, but references it. This broke drawing the workspaces window background. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19689 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/WorkspacesLayer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/servers/app/WorkspacesLayer.cpp b/src/servers/app/WorkspacesLayer.cpp index 6e198c9231..e39f97f48b 100644 --- a/src/servers/app/WorkspacesLayer.cpp +++ b/src/servers/app/WorkspacesLayer.cpp @@ -203,10 +203,8 @@ WorkspacesLayer::_DrawWindow(DrawingEngine* drawingEngine, const BRect& workspac frame = frame & workspaceFrame; if (frame.IsValid()) { + drawingEngine->FillRect(frame.InsetByCopy(1, 1), white); backgroundRegion.Exclude(frame); - - frame.InsetBy(1, 1); - drawingEngine->FillRect(frame, white); } // draw title @@ -281,7 +279,7 @@ WorkspacesLayer::_DrawWorkspace(DrawingEngine* drawingEngine, // draw background - drawingEngine->ConstrainClippingRegion(&backgroundRegion); + //drawingEngine->ConstrainClippingRegion(&backgroundRegion); drawingEngine->FillRect(rect, color); drawingEngine->ConstrainClippingRegion(&redraw);