X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/98b0d9a3feea2b97671a232ea6efdf65ed0bf969..7e6f15005ac50206ace23e1d3496e8c6550c14f5:/lib/gui/elistbox.cpp?ds=sidebyside diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index c3b202cb..b7b1e3ff 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -8,6 +8,7 @@ eListbox::eListbox(eWidget *parent) : m_content_changed(false), m_enabled_wrap_around(false), m_top(0), m_selected(0), m_itemheight(25), m_items_per_page(0), m_selection_enabled(1), m_scrollbar(NULL) { + memset(&m_style, 0, sizeof(m_style)); // setContent(new eListboxStringContent()); ePtr ptr; @@ -484,12 +485,12 @@ void eListbox::setForegroundColor(gRGB &col) m_style.m_foreground_color_set = 1; } -void eListbox::setBackgroundPicture(gPixmap *pm) +void eListbox::setBackgroundPicture(ePtr &pm) { m_style.m_background = pm; } -void eListbox::setSelectionPicture(gPixmap *pm) +void eListbox::setSelectionPicture(ePtr &pm) { m_style.m_selection = pm; }