cc_item_tvpic: use CFrameBuffer::TM_NONE for transparency mode

Restore older behvior for background painting


Origin commit data
------------------
Branch: ni/coolstream
Commit: d19c6aa6cd
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-12-06 (Mon, 06 Dec 2021)



------------------
This commit was generated by Migit
This commit is contained in:
2021-12-06 20:35:13 +01:00
committed by vanhofen
parent a4c7e6b809
commit 2d4c232540

View File

@@ -48,7 +48,6 @@ CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int perc
//CComponents, CComponentsItem
cc_item_type.id = CC_ITEMTYPE_PIP;
cc_item_type.name ="cc_pip_box";
//CComponentsPIP
screen_w = frameBuffer->getScreenWidth(true);
screen_h = frameBuffer->getScreenHeight(true);
@@ -100,7 +99,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(pig_x, pig_y, pig_w, pig_h, pic_name, NULL, CC_SHADOW_OFF, col_frame, col_body_std, col_shadow);
CComponentsPicture pic(pig_x, pig_y, pig_w, pig_h, pic_name, NULL, CC_SHADOW_OFF, col_frame, col_body_std, col_shadow, CFrameBuffer::TM_NONE);
int w, h;
pic.getSize(&w, &h);
pic.setPos(pig_x + pig_w/2-w/2, pig_y + pig_h/2-h/2);