addapted to new clipping code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13398 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -786,7 +786,11 @@ bool RootLayer::SetActiveWorkspace(int32 index)
|
|||||||
get_workspace_windows();
|
get_workspace_windows();
|
||||||
|
|
||||||
if (WorkspacesLayer() != NULL)
|
if (WorkspacesLayer() != NULL)
|
||||||
|
#ifndef NEW_CLIPPING
|
||||||
GoRedraw(WorkspacesLayer(), WorkspacesLayer()->fVisible);
|
GoRedraw(WorkspacesLayer(), WorkspacesLayer()->fVisible);
|
||||||
|
#else
|
||||||
|
GoRedraw(WorkspacesLayer(), WorkspacesLayer()->VisibleRegion());
|
||||||
|
#endif
|
||||||
|
|
||||||
// send the workspace changed message for the new workspace
|
// send the workspace changed message for the new workspace
|
||||||
{
|
{
|
||||||
@@ -1924,7 +1928,11 @@ RootLayer::show_winBorder(WinBorder *winBorder)
|
|||||||
show_final_scene(exFocus, exActive);
|
show_final_scene(exFocus, exActive);
|
||||||
|
|
||||||
if (WorkspacesLayer())
|
if (WorkspacesLayer())
|
||||||
|
#ifndef NEW_CLIPPING
|
||||||
GoRedraw(WorkspacesLayer(), fFullVisible);
|
GoRedraw(WorkspacesLayer(), fFullVisible);
|
||||||
|
#else
|
||||||
|
GoRedraw(WorkspacesLayer(), FullVisible());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1957,7 +1965,11 @@ RootLayer::hide_winBorder(WinBorder *winBorder)
|
|||||||
show_final_scene(exFocus, exActive);
|
show_final_scene(exFocus, exActive);
|
||||||
|
|
||||||
if (WorkspacesLayer())
|
if (WorkspacesLayer())
|
||||||
|
#ifndef NEW_CLIPPING
|
||||||
GoRedraw(WorkspacesLayer(), fFullVisible);
|
GoRedraw(WorkspacesLayer(), fFullVisible);
|
||||||
|
#else
|
||||||
|
GoRedraw(WorkspacesLayer(), FullVisible());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,11 @@ WorkspacesLayer::_DrawWorkspace(int32 index)
|
|||||||
|
|
||||||
// draw windows
|
// draw windows
|
||||||
|
|
||||||
|
#ifndef NEW_CLIPPING
|
||||||
BRegion backgroundRegion = fVisible;
|
BRegion backgroundRegion = fVisible;
|
||||||
|
#else
|
||||||
|
BRegion backgroundRegion = VisibleRegion();
|
||||||
|
#endif
|
||||||
// ToDo: would be nice to get the real update region here
|
// ToDo: would be nice to get the real update region here
|
||||||
|
|
||||||
if (workspace != NULL) {
|
if (workspace != NULL) {
|
||||||
@@ -173,7 +177,14 @@ WorkspacesLayer::_DrawWorkspace(int32 index)
|
|||||||
|
|
||||||
fDriver->ConstrainClippingRegion(&backgroundRegion);
|
fDriver->ConstrainClippingRegion(&backgroundRegion);
|
||||||
fDriver->FillRect(rect, color);
|
fDriver->FillRect(rect, color);
|
||||||
|
|
||||||
|
// TODO: ConstrainClippingRegion() should accept a const parameter !!
|
||||||
|
#ifndef NEW_CLIPPING
|
||||||
fDriver->ConstrainClippingRegion(&fVisible);
|
fDriver->ConstrainClippingRegion(&fVisible);
|
||||||
|
#else
|
||||||
|
BRegion cRegion(VisibleRegion());
|
||||||
|
fDriver->ConstrainClippingRegion(&cRegion);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user