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:
parent
83c6772dc8
commit
6b97dd4e51
@ -203,10 +203,8 @@ WorkspacesLayer::_DrawWindow(DrawingEngine* drawingEngine, const BRect& workspac
|
|||||||
|
|
||||||
frame = frame & workspaceFrame;
|
frame = frame & workspaceFrame;
|
||||||
if (frame.IsValid()) {
|
if (frame.IsValid()) {
|
||||||
|
drawingEngine->FillRect(frame.InsetByCopy(1, 1), white);
|
||||||
backgroundRegion.Exclude(frame);
|
backgroundRegion.Exclude(frame);
|
||||||
|
|
||||||
frame.InsetBy(1, 1);
|
|
||||||
drawingEngine->FillRect(frame, white);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw title
|
// draw title
|
||||||
@ -281,7 +279,7 @@ WorkspacesLayer::_DrawWorkspace(DrawingEngine* drawingEngine,
|
|||||||
|
|
||||||
// draw background
|
// draw background
|
||||||
|
|
||||||
drawingEngine->ConstrainClippingRegion(&backgroundRegion);
|
//drawingEngine->ConstrainClippingRegion(&backgroundRegion);
|
||||||
drawingEngine->FillRect(rect, color);
|
drawingEngine->FillRect(rect, color);
|
||||||
|
|
||||||
drawingEngine->ConstrainClippingRegion(&redraw);
|
drawingEngine->ConstrainClippingRegion(&redraw);
|
||||||
|
Loading…
Reference in New Issue
Block a user