From: Felix Domke Date: Sun, 27 Nov 2005 19:53:55 +0000 (+0000) Subject: listbox: after a long discussion, paint the f&/%ing pixels... X-Git-Tag: 2.6.0~4932 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/2f74d5618fa93580d86caf1bf1d0eb2108418de8 listbox: after a long discussion, paint the f&/%ing pixels... --- diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index dc735f85..c3dd659b 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -142,7 +142,7 @@ int eListbox::event(int event, void *data, void *data2) m_content->cursorSave(); m_content->cursorMove(m_top - m_selected); - for (int y = 0, i = 0; i < m_items_per_page; y += m_itemheight, ++i) + for (int y = 0, i = 0; i <= m_items_per_page; y += m_itemheight, ++i) { m_content->paint(painter, *style, ePoint(0, y), m_selected == m_content->cursorGet() && m_content->size()); m_content->cursorMove(+1);