From 8762d4b8712a4cf1cf82f057e0d5ea4e481f61e3 Mon Sep 17 00:00:00 2001 From: "M. Liebmann" Date: Sat, 20 Sep 2014 21:34:38 +0200 Subject: [PATCH] CComponentsHeader: Use Font::FULLBG for rendering string... ...when text is painted on a color gradient --- src/gui/components/cc_frm_header.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index dffe45273..570d91f07 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -400,6 +400,10 @@ void CComponentsHeader::initGradient() cc_gradientData.gradientBuf = gradientBuf; cc_gradientData.direction = CFrameBuffer::gradientVertical; cc_gradientData.mode = CFrameBuffer::pbrg_noOption; + + CTextBox* ctb = cch_text_obj->getCTextBoxObject(); + if (ctb) + ctb->setTextRenderModeFullBG(true); } void CComponentsHeader::initCCItems()