mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
cc_item_tvpic: use CFrameBuffer::TM_NONE for transparency mode
Restore older behvior for background painting
This commit is contained in:
@@ -48,7 +48,6 @@ CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int perc
|
|||||||
//CComponents, CComponentsItem
|
//CComponents, CComponentsItem
|
||||||
cc_item_type.id = CC_ITEMTYPE_PIP;
|
cc_item_type.id = CC_ITEMTYPE_PIP;
|
||||||
cc_item_type.name ="cc_pip_box";
|
cc_item_type.name ="cc_pip_box";
|
||||||
|
|
||||||
//CComponentsPIP
|
//CComponentsPIP
|
||||||
screen_w = frameBuffer->getScreenWidth(true);
|
screen_w = frameBuffer->getScreenWidth(true);
|
||||||
screen_h = frameBuffer->getScreenHeight(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);
|
videoDecoder->Pig(pig_x, pig_y, pig_w, pig_h, screen_w, screen_h);
|
||||||
}
|
}
|
||||||
else{ //paint an alternate image if no tv mode available
|
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;
|
int w, h;
|
||||||
pic.getSize(&w, &h);
|
pic.getSize(&w, &h);
|
||||||
pic.setPos(pig_x + pig_w/2-w/2, pig_y + pig_h/2-h/2);
|
pic.setPos(pig_x + pig_w/2-w/2, pig_y + pig_h/2-h/2);
|
||||||
|
Reference in New Issue
Block a user