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
This commit is contained in:
Axel Dörfler 2007-01-03 16:36:04 +00:00
parent 83c6772dc8
commit 6b97dd4e51

View File

@ -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);