From a0ee1a624d3e38c0ee4183b7d0a6857f2f97cc8a Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 14 Apr 2013 15:09:51 +0200 Subject: [PATCH] src/gui/epgview.cpp: center window Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3731bc421625c64f468960ee8915bb1a10a47545 Author: Jacek Jendrzej Date: 2013-04-14 (Sun, 14 Apr 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/epgview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 6df9737b2..b7e81a3f0 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -126,6 +126,7 @@ void CEpgData::start() buttonheight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight() + 6; if (buttonheight < 30) buttonheight = 30; // the buttons and icons need space + oy-=buttonheight/2; /* this is the text box height - and the height of the scroll bar */ sb = oy - topboxheight - botboxheight - buttonheight; /* button box is handled separately (why?) */ @@ -135,7 +136,7 @@ void CEpgData::start() toph = topboxheight; sx = getScreenStartX(ox); - sy = getScreenStartY(oy + buttonheight/2); /* button box is handled separately (why?) */ + sy = getScreenStartY(oy + buttonheight); /* button box is handled separately (why?) */ } void CEpgData::addTextToArray(const std::string & text, int screening) // UTF-8