aboutsummaryrefslogtreecommitdiff
path: root/lib/gui
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-04-02 20:04:39 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-04-02 20:04:39 +0200
commitcc2c5bee0d8c8b86765730ee250b71e39d196b26 (patch)
tree448a760dc91f1f3cbd877f5c3ac2b6580eebab38 /lib/gui
parentf725f69a31fb6f6a08f4ee8c7a623bb0e27db066 (diff)
downloadenigma2-cc2c5bee0d8c8b86765730ee250b71e39d196b26.tar.gz
enigma2-cc2c5bee0d8c8b86765730ee250b71e39d196b26.zip
elistboxcontent.cpp: revert "cleanup" part of the commit "elistboxcontent.cpp: code cleanup, only draw background pixmap for valid(used) listbox entries"
Diffstat (limited to 'lib/gui')
-rw-r--r--lib/gui/elistboxcontent.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index 4da1618c..dccd1b05 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -182,7 +182,7 @@ void eListboxPythonStringContent::paint(gPainter &painter, eWindowStyle &style,
{
if (local_style->m_background && cursorValid)
painter.blit(local_style->m_background, offset, eRect(), gPainter::BT_ALPHATEST);
- else
+ else if (selected && !local_style->m_selection)
painter.clear();
}
@@ -319,7 +319,7 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style,
{
if (local_style->m_background && cursorValid)
painter.blit(local_style->m_background, offset, eRect(), gPainter::BT_ALPHATEST);
- else
+ else if (selected && !local_style->m_selection)
painter.clear();
}
@@ -533,6 +533,8 @@ static void clearRegionHelper(gPainter &painter, eListboxStyle *local_style, con
painter.blit(local_style->m_background, offset, eRect(), 0);
return;
}
+ else if (local_style->m_transparent_background)
+ return;
}
painter.clear();
}
@@ -556,6 +558,8 @@ static void clearRegionSelectedHelper(gPainter &painter, eListboxStyle *local_st
painter.blit(local_style->m_background, offset, eRect(), 0);
return;
}
+ else if (local_style->m_transparent_background)
+ return;
}
painter.clear();
}
@@ -1002,7 +1006,7 @@ void eListboxPythonMultiContent::paint(gPainter &painter, eWindowStyle &style, c
}
}
- if (selected && (!local_style || !local_style->m_selection))
+ if (selected && !sel_clip.valid() && (!local_style || !local_style->m_selection))
style.drawFrame(painter, eRect(offset, m_itemsize), eWindowStyle::frameListboxEntry);
error_out:
@@ -1041,7 +1045,7 @@ int eListboxPythonMultiContent::currentCursorSelectable()
{
bool retval = ret == Py_True;
Py_DECREF(ret);
- return ret;
+ return retval;
}
eDebug("call m_selectableFunc failed!!! assume not callable");
}