X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7c12c1089cfbee5b0a390d5f3de37f85de210263..a5b05acf110e396ca32bf777b70d7068deea81ce:/lib/gui/ebutton.cpp diff --git a/lib/gui/ebutton.cpp b/lib/gui/ebutton.cpp index e24abd66..30824df2 100644 --- a/lib/gui/ebutton.cpp +++ b/lib/gui/ebutton.cpp @@ -2,6 +2,9 @@ eButton::eButton(eWidget *parent): eLabel(parent) { + /* default to center alignment */ + m_valign = alignCenter; + m_halign = alignCenter; } void eButton::push() @@ -21,7 +24,7 @@ int eButton::event(int event, void *data, void *data2) getStyle(style); eLabel::event(event, data, data2); - style->drawButtonFrame(painter, eRect(ePoint(0, 0), size())); + style->drawFrame(painter, eRect(ePoint(0, 0), size()), eWindowStyle::frameButton); return 0; }