CCDraw: enable/disable frame if frame on changed frame width

Origin commit data
------------------
Branch: ni/coolstream
Commit: a2f96948fa
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-06 (Wed, 06 Apr 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2016-04-06 20:08:18 +02:00
parent b778facb6a
commit 6e76f9413f

View File

@@ -224,6 +224,11 @@ void CCDraw::setFrameThickness(const int& thickness, const int& thickness_sel)
if (fr_thickness_sel != thickness_sel) if (fr_thickness_sel != thickness_sel)
fr_thickness_sel = thickness_sel; fr_thickness_sel = thickness_sel;
//ensure enabled frame if frame width > 0
cc_enable_frame = false;
if (fr_thickness)
cc_enable_frame = true;
} }
bool CCDraw::enableColBodyGradient(const int& enable_mode, const fb_pixel_t& sec_color, const int& direction) bool CCDraw::enableColBodyGradient(const int& enable_mode, const fb_pixel_t& sec_color, const int& direction)