From 75f7ac123522562a68d062a145effb5df4f6bf5f Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 17 Jul 2014 12:53:44 +0400 Subject: [PATCH] gui/components/cc_base.cpp: try to fix screen save for CComponentsDetailLine --- src/gui/components/cc_base.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_base.cpp b/src/gui/components/cc_base.cpp index 17bc1d811..734d1bd2a 100644 --- a/src/gui/components/cc_base.cpp +++ b/src/gui/components/cc_base.cpp @@ -151,6 +151,7 @@ void CComponents::paintFbItems(bool do_save_bg) //some elements can be assembled from lines and must be handled as one unit (see details line), //so all individual backgrounds of boxes must be saved and painted in "firstpaint mode" +#if 0 if (firstPaint){ if (do_save_bg && fbtype == CC_FBDATA_TYPE_LINE) @@ -162,7 +163,10 @@ void CComponents::paintFbItems(bool do_save_bg) else firstPaint = false; } - +#endif + if (do_save_bg && fbtype == CC_FBDATA_TYPE_LINE) + v_fbdata[i].pixbuf = getScreen(v_fbdata[i].x, v_fbdata[i].y, v_fbdata[i].dx, v_fbdata[i].dy); + //paint all fb relevant basic parts (frame and body) with all specified properties, paint_bg must be true if (fbtype != CC_FBDATA_TYPE_BGSCREEN && paint_bg){ if (fbtype == CC_FBDATA_TYPE_FRAME) {