mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CComponentsText: move setTextRenderModeFullBG() to text object
This is mostly required here
This commit is contained in:
@@ -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()
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user