mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- epgview: take footer height from CComponentsFooter ...
to get this footer in sync with the footers of other gui elements Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -145,9 +145,9 @@ void CEpgData::start()
|
|||||||
topheight = font_title->getHeight();
|
topheight = font_title->getHeight();
|
||||||
topboxheight = topheight + 6;
|
topboxheight = topheight + 6;
|
||||||
botboxheight = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->getHeight() + 6;
|
botboxheight = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->getHeight() + 6;
|
||||||
buttonheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_FOOT]->getHeight() + 6;
|
// not really a CComponentsFooter but let's take its height
|
||||||
if (buttonheight < 30)
|
CComponentsFooter footer;
|
||||||
buttonheight = 30; // the buttons and icons need space
|
buttonheight = footer.getHeight();
|
||||||
oy-=buttonheight/2;
|
oy-=buttonheight/2;
|
||||||
/* this is the text box height - and the height of the scroll bar */
|
/* this is the text box height - and the height of the scroll bar */
|
||||||
sb = oy - topboxheight - botboxheight - buttonheight;
|
sb = oy - topboxheight - botboxheight - buttonheight;
|
||||||
@@ -1471,22 +1471,17 @@ const struct button_label EpgButtons[][EpgButtonsMax] =
|
|||||||
|
|
||||||
void CEpgData::showTimerEventBar (bool pshow, bool adzap, bool mp_info)
|
void CEpgData::showTimerEventBar (bool pshow, bool adzap, bool mp_info)
|
||||||
{
|
{
|
||||||
int x, y, w, h, fh;
|
int x, y, w, h;
|
||||||
int icol_w, icol_h;
|
|
||||||
|
|
||||||
x = sx;
|
x = sx;
|
||||||
y = sy + oy;
|
y = sy + oy;
|
||||||
w = ox;
|
w = ox;
|
||||||
|
h = buttonheight;
|
||||||
// why we don't use buttonheight member?
|
|
||||||
fh = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_FOOT]->getHeight();
|
|
||||||
|
|
||||||
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_RED, &icol_w, &icol_h);
|
|
||||||
h = std::max(fh, icol_h+4);
|
|
||||||
|
|
||||||
// hide only?
|
// hide only?
|
||||||
if (! pshow) {
|
if (!pshow)
|
||||||
frameBuffer->paintBackgroundBoxRel(sx,y,ox,h);
|
{
|
||||||
|
frameBuffer->paintBackgroundBoxRel(x, y, w, h);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user