cc_item_tvpic: simplify and fix object creation of pic

color was wrong
This commit is contained in:
2021-12-02 13:50:51 +01:00
parent 5a539d0134
commit 9f244f37c2

View File

@@ -100,8 +100,7 @@ void CComponentsPIP::paint(const 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, NULL, CC_SHADOW_OFF, col_frame, col_frame);
pic.doPaintBg(false);
CComponentsPicture pic(pig_x, pig_y, pig_w, pig_h, pic_name, NULL, CC_SHADOW_OFF, col_frame, col_body_std, col_shadow);
int w, h;
pic.getSize(&w, &h);
pic.setPos(pig_x + pig_w/2-w/2, pig_y + pig_h/2-h/2);