Use the AutoFloatingOverlaysHider in the remaining cases where overlays were
hidden regardless of the affected area. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24098 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -584,12 +584,11 @@ DrawingEngine::DrawBezier(BPoint *pts, bool filled)
|
|||||||
CRASH_IF_NOT_LOCKED
|
CRASH_IF_NOT_LOCKED
|
||||||
|
|
||||||
// TODO: figure out bounds and hide cursor depending on that
|
// TODO: figure out bounds and hide cursor depending on that
|
||||||
fGraphicsCard->HideFloatingOverlays();
|
AutoFloatingOverlaysHider _(fGraphicsCard);
|
||||||
|
|
||||||
BRect touched = fPainter->DrawBezier(pts, filled);
|
BRect touched = fPainter->DrawBezier(pts, filled);
|
||||||
|
|
||||||
fGraphicsCard->Invalidate(touched);
|
fGraphicsCard->Invalidate(touched);
|
||||||
fGraphicsCard->ShowFloatingOverlays();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawEllipse
|
// DrawEllipse
|
||||||
@@ -921,14 +920,13 @@ DrawingEngine::DrawShape(const BRect& bounds, int32 opCount,
|
|||||||
|
|
||||||
// NOTE: hides cursor regardless of if and where
|
// NOTE: hides cursor regardless of if and where
|
||||||
// shape is drawn on screen, TODO: optimize
|
// shape is drawn on screen, TODO: optimize
|
||||||
fGraphicsCard->HideFloatingOverlays();
|
AutoFloatingOverlaysHider _(fGraphicsCard);
|
||||||
|
|
||||||
BRect touched = fPainter->DrawShape(opCount, opList,
|
BRect touched = fPainter->DrawShape(opCount, opList,
|
||||||
ptCount, ptList,
|
ptCount, ptList,
|
||||||
filled);
|
filled);
|
||||||
|
|
||||||
fGraphicsCard->Invalidate(touched);
|
fGraphicsCard->Invalidate(touched);
|
||||||
fGraphicsCard->ShowFloatingOverlays();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user