CComponentsText: move setTextRenderModeFullBG() to text object

This is mostly required here


Origin commit data
------------------
Branch: ni/coolstream
Commit: 11c9d0780a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)



------------------
This commit was generated by Migit
This commit is contained in:
2014-09-20 21:34:53 +02:00
committed by [CST] Focus
parent 449c610b35
commit 6f9ffe7aeb
2 changed files with 3 additions and 4 deletions

View File

@@ -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()

View File

@@ -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);
}