Skip to content

Commit

Permalink
cc_item_tvpic: use CFrameBuffer::TM_NONE for transparency mode
Browse files Browse the repository at this point in the history
Restore older behvior for background painting
  • Loading branch information
dbt1 authored and vanhofen committed Dec 6, 2021
1 parent 8eba953 commit d19c6aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/components/cc_item_tvpic.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d19c6aa

Please sign in to comment.