mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user