src/gui/epgview.cpp: center window

Origin commit data
------------------
Commit: 3731bc4216
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-04-14 (Sun, 14 Apr 2013)
This commit is contained in:
Jacek Jendrzej
2013-04-14 15:09:51 +02:00
parent 7dfb8931d7
commit 36d335e6cd

View File

@@ -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