diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 7b9e35085..e8243a4ea 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -689,6 +689,12 @@ void CTimerList::paintItem(int pos) uint8_t color; fb_pixel_t bgcolor; + int real_width=width; + if (timerlist.size() > listmaxshow) + { + real_width-=15; //scrollbar + } + if (pos & 1) { color = COL_MENUCONTENTDARK; @@ -699,6 +705,7 @@ void CTimerList::paintItem(int pos) color = COL_MENUCONTENT; bgcolor = COL_MENUCONTENT_PLUS_0; } + frameBuffer->paintBoxRel(x, ypos, real_width, 2*fheight, bgcolor); if (liststart + pos == selected) { @@ -706,12 +713,6 @@ void CTimerList::paintItem(int pos) bgcolor = COL_MENUCONTENTSELECTED_PLUS_0; } - int real_width=width; - if (timerlist.size()>listmaxshow) - { - real_width-=15; //scrollbar - } - frameBuffer->paintBoxRel(x,ypos, real_width, 2*fheight, bgcolor, RADIUS_MID); if (liststart+pos