mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
cc_base.cpp: paint shadow only on firs paint of item body
Avoids unnecessary paint of shadow layers, This should
avoid flicker effects.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1e16dbbf59
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-27 (Mon, 27 Apr 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -198,7 +198,7 @@ void CComponents::paintFbItems(bool do_save_bg)
|
||||
//calculate current shadow width depends of current corner_rad
|
||||
sw_cur = max(2*v_fbdata[i].r, sw);
|
||||
}
|
||||
if (cc_allow_paint){
|
||||
if (cc_allow_paint && is_painted){
|
||||
// shadow right
|
||||
frameBuffer->paintBoxRel(x_sh, v_fbdata[i].y, sw_cur, v_fbdata[i].dy-sw_cur, v_fbdata[i].color, v_fbdata[i].r, corner_type & CORNER_TOP_RIGHT);
|
||||
// shadow bottom
|
||||
|
Reference in New Issue
Block a user