mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user