[escher/scroll_view] Remove setColorsBackground

Introduced in commit 37da7b95a to avoid screen tearing.
Not necessary anymore since commit 0e9092d2e.
This commit is contained in:
Ruben Dashyan
2019-02-08 14:01:19 +01:00
committed by EmilieNumworks
parent 538d5cce64
commit fd654d1c79
6 changed files with 1 additions and 12 deletions

View File

@@ -18,7 +18,6 @@ ScrollView::ScrollView(View * contentView, ScrollViewDataSource * dataSource) :
m_decorator(),
m_barDecorator(),
m_arrowDecorator(),
m_colorsBackground(true),
m_backgroundColor(Palette::WallScreen)
{
assert(m_dataSource != nullptr);
@@ -44,9 +43,6 @@ ScrollView::Decorator * ScrollView::decorator() {
}
void ScrollView::drawRect(KDContext * ctx, KDRect rect) const {
if (!m_colorsBackground) {
return;
}
KDCoordinate height = bounds().height();
KDCoordinate width = bounds().width();
KDCoordinate offsetX = contentOffset().x();