From 263da08fb95a475b5ee6f4ddf6da67b9774a87ed Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 18 Apr 2013 17:45:48 +0200 Subject: [PATCH] - cc_item.cpp: fix wrong calc in paintInit() --- 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 15b5970a0..959617541 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -84,7 +84,7 @@ void CComponentsItem::paintInit(bool do_save_bg) {CC_FBDATA_TYPE_BGSCREEN, x, y, width+sw, height+sw, 0, 0, 0, NULL, NULL}, {CC_FBDATA_TYPE_SHADOW, x+sw, y+sw, width, height, col_shadow, corner_rad, 0, NULL, NULL}, {CC_FBDATA_TYPE_FRAME, x, y, width, height, col_frame_cur, corner_rad, th, NULL, NULL}, - {CC_FBDATA_TYPE_BOX, x+th, y+th, width-2*th, height-2*th, col_body, corner_rad-th, 0, NULL, NULL}, + {CC_FBDATA_TYPE_BOX, x+th, y+th, width-2*th, height-2*th, col_body, (corner_rad>th) ? corner_rad-th : corner_rad, 0, NULL, NULL}, }; for(size_t i =0; i< (sizeof(fbdata) / sizeof(fbdata[0])) ;i++)