cc_draw: add member for transparency mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 83c5a4ff40
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-05 (Fri, 05 Nov 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2021-11-05 20:09:04 +01:00
committed by vanhofen
parent f6e13aded7
commit 2ac0ab8b51
2 changed files with 4 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;