From cc8679306ad5542f50093b990136110470a70d12 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Tue, 21 May 2013 17:13:29 +0200 Subject: [PATCH] CComponentsItem: Set sw_cur = 0 if no shadow Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b8da50443286357eb8fa4d6fde33385b63fa7593 Author: Michael Liebmann Date: 2013-05-21 (Tue, 21 May 2013) Origin message was: ------------------ * CComponentsItem: Set sw_cur = 0 if no shadow ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_item.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_item.cpp b/src/gui/components/cc_item.cpp index 8da3b5ac2..e26ffd46c 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -85,7 +85,9 @@ void CComponentsItem::paintInit(bool do_save_bg) int y_sh = corner_rad>0 ? y+height-2*corner_rad+sw : y+height; //bottom //calculate current shadow width depends of current corner_rad - int sw_cur = corner_rad>0 ? 2*corner_rad : sw; + int sw_cur = sw; + if (shadow) + sw_cur = corner_rad>sw ? 2*corner_rad : sw; comp_fbdata_t fbdata[] = {