From b6185ea78decf04cffcae8d82e2727620bb61f3c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 12 Sep 2016 08:28:08 +0200 Subject: [PATCH] CComponentsItem: remove frame witdth from boxrad calculation This fix possible artefacts on the bottom right corner with frame --- src/gui/components/cc_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_item.cpp b/src/gui/components/cc_item.cpp index 7e10a52a0..b3b0ea4b7 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -93,7 +93,7 @@ void CComponentsItem::paintInit(bool do_save_bg) box_rad -= max(0, 2*box_rad-dy); //Workaround: ensure radius values >= 0, framebuffer methode paintBoxRel() gets confused - box_rad = max(box_rad-th, 0); + box_rad = max(box_rad, 0); fb_pixel_t col_shadow_clean = 0; //if item is bound on a parent form,...