cc_item_tvpic: simplify and fix object creation of pic

color was wrong


Origin commit data
------------------
Commit: 808ce0af1a
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-12-02 (Thu, 02 Dec 2021)
This commit is contained in:
2021-12-02 13:50:51 +01:00
committed by vanhofen
parent 7d3616592b
commit 7d555c7ffe

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