diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-13 15:10:55 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-13 15:10:55 +0000 |
| commit | a9f8b624a019abc105b248885c98a71d37803e88 (patch) | |
| tree | 8ccfe540948ead38f06cf7983bce4fcccdc1e9c6 /lib | |
| parent | 2d56db2bf96ca3ca320a5c25c0e2ee6f3435ab43 (diff) | |
| download | enigma2-a9f8b624a019abc105b248885c98a71d37803e88.tar.gz enigma2-a9f8b624a019abc105b248885c98a71d37803e88.zip | |
remove unneeded code,
fix copy & paste typo
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 2278db16..fd7341a9 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -576,7 +576,7 @@ static void clearRegion(gPainter &painter, eWindowStyle &style, eListboxStyle *l { if (pforeColorSelected) { - int color = PyInt_AsLong(pforeColor); + int color = PyInt_AsLong(pforeColorSelected); painter.setForegroundColor(gRGB(color)); } /* if we have a local foreground color set, use that. */ @@ -765,8 +765,6 @@ void eListboxPythonMultiContent::paint(gPainter &painter, eWindowStyle &style, c int color = PyInt_AsLong(pborderColor); painter.setForegroundColor(gRGB(color)); } - else if (pforeColor) // reset to normal color - style.setStyle(painter, selected ? eWindowStyle::styleListboxSelected : eWindowStyle::styleListboxNormal); rect.setRect(x, y, width, bwidth); painter.fill(rect); |
