CMenuWidget: init instance of CComponentsDetailsLine in constructor

Origin commit data
------------------
Branch: ni/coolstream
Commit: 12cb192341
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-08-22 (Wed, 22 Aug 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2012-08-22 12:41:56 +02:00
parent 34d0d8bb40
commit ad9dde6549

View File

@@ -324,7 +324,7 @@ void CMenuWidget::Init(const std::string & Icon, const int mwidth, const mn_widg
mglobal = CMenuGlobal::getInstance(); //create CMenuGlobal instance only here mglobal = CMenuGlobal::getInstance(); //create CMenuGlobal instance only here
frameBuffer = CFrameBuffer::getInstance(); frameBuffer = CFrameBuffer::getInstance();
iconfile = Icon; iconfile = Icon;
details_line = NULL; details_line = new CComponentsDetailLine();
info_box = new CComponentsInfoBox(); info_box = new CComponentsInfoBox();
//handle select values //handle select values
@@ -1144,15 +1144,13 @@ void CMenuWidget::paintHint(int pos)
int imarkh = iheight/2+1; int imarkh = iheight/2+1;
//init details line //init details line
if (details_line == NULL) if (details_line){
details_line = new CComponentsDetailLine(xpos, ypos1a, ypos2a, imarkh, markh);
else{
details_line->setXPos(xpos); details_line->setXPos(xpos);
details_line->setYPos(ypos1a); details_line->setYPos(ypos1a);
details_line->setYPosDown(ypos2a); details_line->setYPosDown(ypos2a);
details_line->setHMarkTop(imarkh);
details_line->setHMarkDown(markh); details_line->setHMarkDown(markh);
} details_line->syncSysColors();
details_line->syncSysColors();
#if 0 #if 0
details_line->paint(savescreen); details_line->paint(savescreen);
#endif #endif