CComponentsText: move setTextRenderModeFullBG() to text object

This is mostly required here
This commit is contained in:
2014-09-20 21:34:53 +02:00
committed by [CST] Focus
parent 83070da483
commit 11c9d0780a
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.gradientBuf = cc_gradientBuf;
cc_gradientData.direction = CFrameBuffer::gradientVertical; cc_gradientData.direction = CFrameBuffer::gradientVertical;
cc_gradientData.mode = CFrameBuffer::pbrg_noOption; cc_gradientData.mode = CFrameBuffer::pbrg_noOption;
CTextBox* ctb = cch_text_obj->getCTextBoxObject();
if (ctb)
ctb->setTextRenderModeFullBG(true);
} }
void CComponentsHeader::initCCItems() void CComponentsHeader::initCCItems()

View File

@@ -166,6 +166,9 @@ void CComponentsText::initCCText()
ct_old_col_text = ct_col_text; 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); 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);
} }