mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
cc_draw: ensure kill of rendered boxes only if enabled
Avoids unnecessary render of empty parts on screen.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 635560b896
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-12-31 (Tue, 31 Dec 2019)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -766,6 +766,7 @@ void CCDraw::kill(const fb_pixel_t& bg_color, const int& corner_radius, const in
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (v_fbdata.at(i).dx > 0 && v_fbdata.at(i).dy > 0){
|
if (v_fbdata.at(i).dx > 0 && v_fbdata.at(i).dy > 0){
|
||||||
|
if (v_fbdata.at(i).fbdata_type & (CC_FBDATA_TYPE_BOX | CC_FBDATA_TYPE_SHADOW_BOX) && v_fbdata.at(i).enabled){
|
||||||
frameBuffer->paintBoxRel(v_fbdata.at(i).x,
|
frameBuffer->paintBoxRel(v_fbdata.at(i).x,
|
||||||
v_fbdata.at(i).y,
|
v_fbdata.at(i).y,
|
||||||
v_fbdata.at(i).dx,
|
v_fbdata.at(i).dx,
|
||||||
@@ -773,7 +774,7 @@ void CCDraw::kill(const fb_pixel_t& bg_color, const int& corner_radius, const in
|
|||||||
bg_color,
|
bg_color,
|
||||||
r,
|
r,
|
||||||
v_fbdata.at(i).rtype);
|
v_fbdata.at(i).rtype);
|
||||||
|
}
|
||||||
if (v_fbdata.at(i).fbdata_type & CC_FBDATA_TYPE_FRAME){
|
if (v_fbdata.at(i).fbdata_type & CC_FBDATA_TYPE_FRAME){
|
||||||
if (v_fbdata.at(i).frame_thickness)
|
if (v_fbdata.at(i).frame_thickness)
|
||||||
frameBuffer->paintBoxFrame(v_fbdata.at(i).x,
|
frameBuffer->paintBoxFrame(v_fbdata.at(i).x,
|
||||||
|
Reference in New Issue
Block a user