diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index b085267f6..4d8c37886 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -398,10 +398,6 @@ void CComponentsHeader::initGradient() cc_gradientData.gradientBuf = cc_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() diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index 3e35f44bc..6fc7cb9ce 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -166,6 +166,9 @@ void CComponentsText::initCCText() ct_old_col_text = ct_col_text; } + //ensure clean font rendering on transparency background + ct_textbox->setTextRenderModeFullBG(!paint_bg); + dprintf(DEBUG_DEBUG, "[CComponentsText] [%s - %d] init text: %s [x %d, y %d, w %d, h %d]\n", __func__, __LINE__, ct_text.c_str(), this->iX, this->iY, this->iWidth, this->iHeight); }