diff --git a/src/gui/components/cc_draw.cpp b/src/gui/components/cc_draw.cpp index f2589f7e7..76fc8c420 100644 --- a/src/gui/components/cc_draw.cpp +++ b/src/gui/components/cc_draw.cpp @@ -51,6 +51,7 @@ CCDraw::CCDraw() : COSDFader(g_settings.theme.menu_Content_alpha) col_shadow_clean = 0; cc_bg_image = cc_bg_image_old = cc_bg_sel_image = cc_bg_sec_image = ""; + cc_bg_image_tr_mode = CFrameBuffer::TM_NONE; fr_thickness = fr_thickness_old = 0; @@ -619,7 +620,7 @@ void CCDraw::paintFbItems(const bool &do_save_bg) * Paint of background image is prefered, next steps will be ignored! */ if (!cc_bg_image.empty()){ - if (g_PicViewer->DisplayImage(cc_bg_image, v_fbdata.at(i).x, v_fbdata.at(i).y, v_fbdata.at(i).dx, v_fbdata.at(i).dy, CFrameBuffer::TM_NONE)){ + if (g_PicViewer->DisplayImage(cc_bg_image, v_fbdata.at(i).x, v_fbdata.at(i).y, v_fbdata.at(i).dx, v_fbdata.at(i).dy, cc_bg_image_tr_mode)){ // catch screen and store into paint cache v_fbdata.at(i).pixbuf = getScreen(v_fbdata.at(i).x, v_fbdata.at(i).y, v_fbdata.at(i).dx, v_fbdata.at(i).dy); v_fbdata.at(i).is_painted = true; diff --git a/src/gui/components/cc_draw.h b/src/gui/components/cc_draw.h index bf8544ae4..3ffa06e77 100644 --- a/src/gui/components/cc_draw.h +++ b/src/gui/components/cc_draw.h @@ -80,6 +80,8 @@ class CCDraw : public COSDFader, public CComponentsSignals, public CCTypes fb_pixel_t col_shadow_clean; ///property: background image, see also setBodyBGImage() std::string cc_bg_image, cc_bg_image_old, cc_bg_std_image, cc_bg_sel_image, cc_bg_sec_image; + ///background image transparency mode + int cc_bg_image_tr_mode; ///property: frame thickness, see also setFrameThickness() int fr_thickness, fr_thickness_old;