summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2012-10-08 12:23:03 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2012-10-08 12:23:03 +0200
commit9df392341411226e892a83a0a7631e6da52dbb2c (patch)
treec03ae59a832f15c8913bc7ee6205b16fdab9dcd6 /unity-shared
parent2ab7900c37abc409f4301c11ebcc0ce9e7f9d322 (diff)
Remove the other clear.
(bzr r2770.1.4)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/SearchBar.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/unity-shared/SearchBar.cpp b/unity-shared/SearchBar.cpp
index d769eb27c..86c9b3180 100644
--- a/unity-shared/SearchBar.cpp
+++ b/unity-shared/SearchBar.cpp
@@ -394,24 +394,7 @@ void SearchBar::Draw(nux::GraphicsEngine& graphics_engine, bool force_draw)
highlight_layer_->SetGeometry(geo);
highlight_layer_->Renderlayer(graphics_engine);
}
- else if (expander_view_ && expander_view_->IsVisible())
- {
- nux::Geometry geo(expander_view_->GetGeometry());
-
- geo.y -= (HIGHLIGHT_HEIGHT- geo.height) / 2;
- geo.height = HIGHLIGHT_HEIGHT;
- if (RedirectedAncestor())
- {
- unsigned int alpha = 0, src = 0, dest = 0;
- graphics_engine.GetRenderStates().GetBlend(alpha, src, dest);
- // This is necessary when doing redirected rendering.
- // Clean the area below this view before drawing anything.
- graphics_engine.GetRenderStates().SetBlend(false);
- graphics_engine.QRP_Color(geo.x, geo.y, geo.width, geo.height, nux::Color(0.0f, 0.0f, 0.0f, 0.0f));
- graphics_engine.GetRenderStates().SetBlend(alpha, src, dest);
- }
- }
graphics_engine.PopClippingRectangle();
}