summaryrefslogtreecommitdiff
diff options
authorRudra Saraswat <rs2009@ubuntu.com>2022-09-03 14:00:00 +0530
committerMarco Trevisan (TreviƱo) <mail@3v1n0.net>2022-09-13 16:59:53 +0200
commit3b37b2e4d40c2252486e9ceda7fe35ed6b9d9d74 (patch)
treee188a947abfa869521da841a33326b44426d9d70
parentd68c3f90df0040948c4830d403c761ca8f464b14 (diff)
remove layered appearance from dash
-rwxr-xr-xdash/PlacesGroup.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/dash/PlacesGroup.cpp b/dash/PlacesGroup.cpp
index 3eb5b9e02..7a1f8dbf0 100755
--- a/dash/PlacesGroup.cpp
+++ b/dash/PlacesGroup.cpp
@@ -491,20 +491,6 @@ void PlacesGroup::Draw(nux::GraphicsEngine& graphics_engine,
_focus_layer->Renderlayer(graphics_engine);
}
- if (_background_layer)
- {
- nux::Geometry bg_geo = base;
- int bg_width = _background_layer->GetDeviceTexture()->GetWidth();
- bg_geo.x = std::max(bg_geo.width - bg_width, 0);
-
- // to render into a space left over by the scrollview (1 has NOT to be scaled)
- bg_geo.width = std::min(bg_width, bg_geo.GetWidth()) + 1;
- bg_geo.height = _background_layer->GetDeviceTexture()->GetHeight();
-
- _background_layer->SetGeometry(bg_geo);
- _background_layer->Renderlayer(graphics_engine);
- }
-
graphics_engine.PopClippingRectangle();
}