mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
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:
@@ -114,9 +114,7 @@ bool paintImage( const std::string& Image,
|
|||||||
int shadow_mode,
|
int shadow_mode,
|
||||||
const fb_pixel_t& color_shadow)
|
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);
|
||||||
CComponentsPicture box( x, y, dx, dy, image, NULL, shadow_mode, color_frame, color_body, color_shadow, transparent);
|
|
||||||
box.doPaintBg(color_body !=0);
|
|
||||||
box.setCorner(radius, corner_type);
|
box.setCorner(radius, corner_type);
|
||||||
box.paint(CC_SAVE_SCREEN_NO);
|
box.paint(CC_SAVE_SCREEN_NO);
|
||||||
|
|
||||||
|
@@ -268,7 +268,7 @@ bool paintImage( const std::string& Image,
|
|||||||
const int& y,
|
const int& y,
|
||||||
const int& dx = 0,
|
const int& dx = 0,
|
||||||
const int& dy = 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 fb_pixel_t& color_body = 0,
|
||||||
const int& radius = 0,
|
const int& radius = 0,
|
||||||
const int& corner_type = CORNER_NONE,
|
const int& corner_type = CORNER_NONE,
|
||||||
|
Reference in New Issue
Block a user