aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elabel.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-01-28 02:39:09 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-01-28 02:39:09 +0000
commit8ade23537a682d4b0c9709d533b25702bde2ee23 (patch)
treed558411192229a6ddb407b8b067658572b6a9e6b /lib/gui/elabel.cpp
parent1a46b8d1505a1496dfdce0a9f96dde7efbc65d65 (diff)
downloadenigma2-8ade23537a682d4b0c9709d533b25702bde2ee23.tar.gz
enigma2-8ade23537a682d4b0c9709d533b25702bde2ee23.zip
- add listbox
- add listbox example to python (press space, use 1..5) - fix label text positions
Diffstat (limited to 'lib/gui/elabel.cpp')
-rw-r--r--lib/gui/elabel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/elabel.cpp b/lib/gui/elabel.cpp
index f9dcf31b..281a9d27 100644
--- a/lib/gui/elabel.cpp
+++ b/lib/gui/elabel.cpp
@@ -20,8 +20,8 @@ int eLabel::event(int event, void *data, void *data2)
gPainter &painter = *(gPainter*)data2;
ePtr<gFont> fnt = new gFont("Arial", 14);
painter.setFont(fnt);
- style->setForegroundStyle(painter);
- painter.renderText(eRect(0, 0, size().width(), size().height()), m_text);
+ style->setStyle(painter, eWindowStyle::styleLabel);
+ painter.renderText(eRect(0, 0, size().width(), size().height()), m_text, gPainter::RT_HALIGN_CENTER|gPainter::RT_VALIGN_CENTER);
return 0;
}