mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CCDraw: try to separate parameter paint_bg from shadow paint
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6339ce481d
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-23 (Mon, 23 Nov 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -539,7 +539,8 @@ void CCDraw::paintFbItems(bool do_save_bg)
|
||||
if (fbtype == CC_FBDATA_TYPE_BACKGROUND){
|
||||
frameBuffer->paintBackgroundBoxRel(x, y, fbdata.dx, fbdata.dy);
|
||||
}
|
||||
else if (fbtype == CC_FBDATA_TYPE_SHADOW_BOX && !is_painted) { //TODO: is_painted is too global here, shadow will not paint on current instance without called kill/hide
|
||||
}
|
||||
if (fbtype == CC_FBDATA_TYPE_SHADOW_BOX && !is_painted) { //TODO: is_painted is too global here, shadow will not paint on current instance without called kill/hide
|
||||
if (fbdata.enabled) {
|
||||
/* here we paint the shadow around the body
|
||||
* on 1st step we check for already cached screen buffer, if true
|
||||
@@ -559,7 +560,8 @@ void CCDraw::paintFbItems(bool do_save_bg)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (fbtype == CC_FBDATA_TYPE_BOX){
|
||||
if (paint_bg){
|
||||
if (fbtype == CC_FBDATA_TYPE_BOX){
|
||||
if(cc_allow_paint) {
|
||||
/* here we paint the main body of box
|
||||
* on 1st step we check for already cached background buffer, if true
|
||||
|
Reference in New Issue
Block a user