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:
Stephan Aßmus 2008-02-24 16:08:57 +00:00
parent ca6fdaaab1
commit 4d1dd3bcfe

View File

@ -584,12 +584,11 @@ DrawingEngine::DrawBezier(BPoint *pts, bool filled)
CRASH_IF_NOT_LOCKED
// TODO: figure out bounds and hide cursor depending on that
fGraphicsCard->HideFloatingOverlays();
AutoFloatingOverlaysHider _(fGraphicsCard);
BRect touched = fPainter->DrawBezier(pts, filled);
fGraphicsCard->Invalidate(touched);
fGraphicsCard->ShowFloatingOverlays();
}
// DrawEllipse
@ -921,14 +920,13 @@ DrawingEngine::DrawShape(const BRect& bounds, int32 opCount,
// NOTE: hides cursor regardless of if and where
// shape is drawn on screen, TODO: optimize
fGraphicsCard->HideFloatingOverlays();
AutoFloatingOverlaysHider _(fGraphicsCard);
BRect touched = fPainter->DrawShape(opCount, opList,
ptCount, ptList,
filled);
fGraphicsCard->Invalidate(touched);
fGraphicsCard->ShowFloatingOverlays();
}