diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 92cad4d56..ff81abd50 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2258,6 +2258,7 @@ void CChannelList::paintPig (int _x, int _y, int w, int h) } //set changeable minitv properties cc_minitv->setDimensionsAll(_x, _y, w, h); + cc_minitv->setCorner(0); cc_minitv->setColorFrame(COL_MENUCONTENT_PLUS_0); cc_minitv->paint(false); } diff --git a/src/gui/components/cc_item_tvpic.cpp b/src/gui/components/cc_item_tvpic.cpp index 731b826a8..8cdf6e873 100644 --- a/src/gui/components/cc_item_tvpic.cpp +++ b/src/gui/components/cc_item_tvpic.cpp @@ -64,6 +64,9 @@ CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int perc col_frame = color_frame; col_body = color_body; col_shadow = color_shadow; + fr_thickness = 2; + corner_rad = RADIUS_SMALL; + corner_type = CORNER_ALL; initParent(parent); } @@ -96,7 +99,8 @@ void CComponentsPIP::paint(bool do_save_bg) videoDecoder->Pig(pig_x, pig_y, pig_w, pig_h, screen_w, screen_h); } else{ //paint an alternate image if no tv mode available - CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, CC_ALIGN_HOR_CENTER | CC_ALIGN_VER_CENTER); + CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, CC_ALIGN_HOR_CENTER | CC_ALIGN_VER_CENTER, NULL, false, col_frame, col_frame); + pic.setCorner(corner_rad, corner_type); pic.paint(CC_SAVE_SCREEN_NO); } } diff --git a/src/gui/components/cc_item_tvpic.h b/src/gui/components/cc_item_tvpic.h index 9b881f60f..c9df98018 100644 --- a/src/gui/components/cc_item_tvpic.h +++ b/src/gui/components/cc_item_tvpic.h @@ -53,7 +53,7 @@ class CComponentsPIP : public CComponentsItem CComponentsPIP( const int x_pos = 0, const int y_pos = 0, const int percent = 30, CComponentsForm *parent = NULL, bool has_shadow = CC_SHADOW_OFF, - fb_pixel_t color_frame = COL_BACKGROUND, fb_pixel_t color_body = COL_BACKGROUND, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); + fb_pixel_t color_frame = COL_BLACK, fb_pixel_t color_body = COL_BACKGROUND, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); ~CComponentsPIP(); ///set property: width of tv box in pixel