initialize volues

This commit is contained in:
satbaby
2012-05-09 17:33:34 +02:00
parent a79e374cab
commit 489d88a9a2
9 changed files with 27 additions and 9 deletions

View File

@@ -55,6 +55,14 @@ CBEBouquetWidget::CBEBouquetWidget()
int icol_w, icol_h;
frameBuffer = CFrameBuffer::getInstance();
iconoffset = 0;
origPosition = 0;
newPosition = 0;
listmaxshow = 0;
bouquetsChanged = 0;
width = 0;
height = 0;
x = 0;
y = 0;
ButtonHeight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight()+8;

View File

@@ -60,6 +60,16 @@ CBEChannelWidget::CBEChannelWidget(const std::string & Caption, unsigned int Bou
frameBuffer = CFrameBuffer::getInstance();
selected = 0;
iconoffset = 0;
origPosition = 0;
newPosition = 0;
listmaxshow = 0;
numwidth = 0;
info_height = 0;
channelsChanged = false;
width = 0;
height = 0;
x = 0;
y = 0;
theight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
fheight = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getHeight();

View File

@@ -69,7 +69,6 @@ class CBEChannelWidget : public CMenuWidget
int footerHeight;
int info_height;
int ButtonHeight;
std::string caption;
bool channelsChanged;

View File

@@ -57,7 +57,7 @@ CBEChannelSelectWidget::CBEChannelSelectWidget(const std::string & Caption, unsi
bouquet = Bouquet;
mode = Mode;
iconoffset = 0;
info_height = 0;
theight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
fheight = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getHeight();
footerHeight= g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight()+6;

View File

@@ -2263,7 +2263,7 @@ void CInfoViewer::paint_ca_icons(int caid, char * icon, int &icon_space_offset)
icon_map[0x0D00] = std::make_pair(index++,"cw");
icon_map[0x0900] = std::make_pair(index ,"nds");
for (it=icon_map.begin(); it!=icon_map.end(); it++) {
for (it=icon_map.begin(); it!=icon_map.end(); ++it) {
snprintf(buf, sizeof(buf), "%s_%s", (*it).second.second, icon);
frameBuffer->getIconSize(buf, &icon_sizeW[(*it).second.first], &icon_sizeH);
}