From 1b2f3bc103d34876a8e7227a4ee6c4443c9d0e8c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 20 Nov 2021 18:42:49 +0100 Subject: [PATCH] cc_frm_header: ensure restore logo background before cleanup clean background is required before paint new logo, avoids overpaint of old logo supplement to: fix artifacts if no logo found Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/d0f14be9c1903671bf64bad1966235dd32607b01 Author: Thilo Graf Date: 2021-11-20 (Sat, 20 Nov 2021) --- src/gui/components/cc_frm_header.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index 2d7564bb5..191cfe037 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -388,7 +388,10 @@ void CComponentsHeader::initLogo() cch_logo_obj->setYPos(height/2 - cch_logo_obj->getHeight()/2); } else + { + cch_logo_obj->hide(); cch_logo_obj->clearFbData(); + } } void CComponentsHeader::addContextButton(const std::string& button_name)