cc_extra: simplify and fix paintImage()

Origin commit data
------------------
Branch: ni/coolstream
Commit: f98c436aa5
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-14 (Sun, 14 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-14 22:12:27 +01:00
committed by vanhofen
parent f70a87f189
commit 7ef6cbe510
2 changed files with 2 additions and 4 deletions

View File

@@ -114,9 +114,7 @@ bool paintImage( const std::string& Image,
int shadow_mode,
const fb_pixel_t& color_shadow)
{
std::string image = (dx > 0 || dy > 0) ? CFrameBuffer::getInstance()->getIconPath(Image) : Image;
CComponentsPicture box( x, y, dx, dy, image, NULL, shadow_mode, color_frame, color_body, color_shadow, transparent);
box.doPaintBg(color_body !=0);
CComponentsPicture box( x, y, dx, dy, Image, NULL, shadow_mode, color_frame, color_body, color_shadow, transparent);
box.setCorner(radius, corner_type);
box.paint(CC_SAVE_SCREEN_NO);

View File

@@ -268,7 +268,7 @@ bool paintImage( const std::string& Image,
const int& y,
const int& dx = 0,
const int& dy = 0,
const int& transparent = CFrameBuffer::TM_NONE,
const int& transparent = CFrameBuffer::TM_EMPTY,
const fb_pixel_t& color_body = 0,
const int& radius = 0,
const int& corner_type = CORNER_NONE,