CComponentsPIP: use a default frame with thickness 2 and small corner radius

This commit is contained in:
2014-03-16 21:43:33 +01:00
parent 7cc66fea93
commit a573b02b85
3 changed files with 7 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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);
}
}

View File

@@ -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