diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2012-10-08 12:23:03 +0200 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2012-10-08 12:23:03 +0200 |
| commit | 9df392341411226e892a83a0a7631e6da52dbb2c (patch) | |
| tree | c03ae59a832f15c8913bc7ee6205b16fdab9dcd6 /unity-shared | |
| parent | 2ab7900c37abc409f4301c11ebcc0ce9e7f9d322 (diff) | |
Remove the other clear.
(bzr r2770.1.4)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/SearchBar.cpp | 17 |
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(); } |
