diff --git a/src/gui/components/cc_base.cpp b/src/gui/components/cc_base.cpp index 30c84dea8..777015ee0 100644 --- a/src/gui/components/cc_base.cpp +++ b/src/gui/components/cc_base.cpp @@ -83,6 +83,7 @@ void CComponents::initVarBasic() //paint framebuffer stuff and fill buffer void CComponents::paintFbItems(bool do_save_bg) { + //save background before first paint, do_save_bg must be true if (firstPaint && do_save_bg) { for(size_t i=0; i 0) frameBuffer->paintBoxFrame(v_fbdata[i].x, v_fbdata[i].y, v_fbdata[i].dx, v_fbdata[i].dy, v_fbdata[i].frame_thickness, v_fbdata[i].color, v_fbdata[i].r); diff --git a/src/gui/components/cc_item.cpp b/src/gui/components/cc_item.cpp index a50375d10..0e9985814 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -67,9 +67,6 @@ void CComponentsItem::paintInit(bool do_save_bg) { clear(); - if(!paint_bg) - return; - int sw = shadow ? shadow_w : 0; int th = fr_thickness; fb_pixel_t col_frame_cur = col_frame;