From 7c8ad1691d01a0b8b93797a935c8a79289ecaa60 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 18 Apr 2013 17:45:48 +0200 Subject: [PATCH] cc_item.cpp: fix wrong calc in paintInit() Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/263da08fb95a475b5ee6f4ddf6da67b9774a87ed Author: vanhofen Date: 2013-04-18 (Thu, 18 Apr 2013) Origin message was: ------------------ - 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++)