mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
CBuildInfo: add missing offset defines
This commit is contained in:
@@ -173,13 +173,13 @@ void CBuildInfo::InitInfoItems()
|
||||
ccw_body->clear();
|
||||
|
||||
//define size and position
|
||||
int x_info = 10;
|
||||
int x_info = OFFSET_INNER_MID;
|
||||
int h_info = ccw_body->getHeight()/v_info.size(); //default height
|
||||
int w_info = width-2*x_info;
|
||||
|
||||
//init info texts
|
||||
for(size_t i=0; i<v_info.size(); i++){
|
||||
CComponentsExtTextForm *info = new CComponentsExtTextForm(10, CC_APPEND, w_info, h_info, g_Locale->getText(v_info[i].caption), v_info[i].info_text, NULL, ccw_body);
|
||||
CComponentsExtTextForm *info = new CComponentsExtTextForm(OFFSET_INNER_MID, CC_APPEND, w_info, h_info, g_Locale->getText(v_info[i].caption), v_info[i].info_text, NULL, ccw_body);
|
||||
info->setLabelAndTextFont(font);
|
||||
info->setTextModes(CTextBox::TOP , CTextBox::AUTO_HIGH | CTextBox::TOP | CTextBox::AUTO_LINEBREAK_NO_BREAKCHARS);
|
||||
info->doPaintBg(false);
|
||||
|
Reference in New Issue
Block a user