From deab17dc2507313cda192d89c5872b6c6feb97a0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 24 Mar 2013 21:13:00 +0100 Subject: [PATCH] CChannelList: ensure new init of dline Causes correct paint of details line, if osd settings have been changed. --- src/gui/channellist.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index f14529d38..d44d0bc4c 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1651,8 +1651,11 @@ void CChannelList::paintItem2DetailsLine (int pos) int ypos2a = ypos2 + (info_height/2)-2; fb_pixel_t col1 = COL_MENUCONTENT_PLUS_6; - if (dline) + if (dline){ dline->kill(); //kill details line + delete dline; + dline = NULL; + } // // Clear // frameBuffer->paintBackgroundBoxRel(xpos,y, ConnectLineBox_Width, height+info_height + 1); @@ -1663,7 +1666,6 @@ void CChannelList::paintItem2DetailsLine (int pos) //details line if (dline == NULL) dline = new CComponentsDetailLine(xpos, ypos1a, ypos2a, fheight/2+1, info_height-RADIUS_LARGE*2); - dline->setYPos(ypos1a); dline->paint(); //info box frame