From 68dac768c0b45cb855514f55254ba6a19956357c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 24 Jun 2017 11:12:08 +0200 Subject: [PATCH] timerlist: add separationline to items Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/2709af5f8a300e0cabbb1ff2d662ee12b7035d43 Author: vanhofen Date: 2017-06-24 (Sat, 24 Jun 2017) Origin message was: ------------------ - timerlist: add separationline to items --- src/gui/timerlist.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index e2846e205..2d1b8cb99 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -677,7 +677,7 @@ void CTimerList::updateEvents(void) header_height = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight(); font_height = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight(); - item_height = 2*font_height; + item_height = 2*font_height + 1; // + 1 for separationline footer_height = header_height; width = frameBuffer->getScreenWidth()/100 * 90; @@ -1160,6 +1160,8 @@ void CTimerList::paintItem(int pos) if (i_radius) frameBuffer->paintBoxRel(x, ypos, real_width, item_height, COL_MENUCONTENT_PLUS_0); frameBuffer->paintBoxRel(x, ypos, real_width, item_height, bgcolor, i_radius); + // separationline + frameBuffer->paintHLineRel(x, real_width, ypos + item_height - 1, (pos + 1 == listmaxshow) ? bgcolor : COL_MENUCONTENTDARK_PLUS_0); //shadow frameBuffer->paintBoxRel(x + width, ypos + OFFSET_SHADOW, OFFSET_SHADOW, item_height, COL_SHADOW_PLUS_0);