diff options
| author | Timo Jyrinki <timo.jyrinki@canonical.com> | 2013-11-06 08:15:35 +0000 |
|---|---|---|
| committer | Timo Jyrinki <timo.jyrinki@canonical.com> | 2013-11-06 08:15:35 +0000 |
| commit | 2db4c077aa10defa2c7433ba33298e1eb60544d9 (patch) | |
| tree | 10cdfb647ca50e2c96cadaefcb6b65b75bb0d0df /plugins/unityshell | |
| parent | 78073517490a32c6173bcb6398ad178b725107cb (diff) | |
Remove the double redraw_view_if_damaged function.
(bzr r3587.1.2)
Diffstat (limited to 'plugins/unityshell')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 91709faaa..f2db18a2a 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -1353,18 +1353,6 @@ void redraw_view_if_damaged(nux::ObjectPtr<nux::View> const& view, CompRegion co view->NeedSoftRedraw(); } -void redraw_view_if_damaged(nux::ObjectPtr<nux::View> const& view, CompRegion const& damage) -{ - if (!view || view->IsRedrawNeeded()) - return; - - auto const& geo = view->GetAbsoluteGeometry(); - CompRegion region(geo.x, geo.y, geo.width, geo.height); - - if (damage.intersects(region)) - view->NeedSoftRedraw(); -} - void UnityScreen::compizDamageNux(CompRegion const& damage) { if (!launcher_controller_) |
