From 6e76f9413f44102092f85da46721537a88fdcd52 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 6 Apr 2016 20:08:18 +0200 Subject: [PATCH] CCDraw: enable/disable frame if frame on changed frame width Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a2f96948faf229bde107fe59a57558120a93c8f6 Author: Thilo Graf Date: 2016-04-06 (Wed, 06 Apr 2016) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_draw.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/components/cc_draw.cpp b/src/gui/components/cc_draw.cpp index b5ef5bf0d..8934d66e4 100644 --- a/src/gui/components/cc_draw.cpp +++ b/src/gui/components/cc_draw.cpp @@ -224,6 +224,11 @@ void CCDraw::setFrameThickness(const int& thickness, const int& thickness_sel) if (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)