- strech most windows to full screen

* switchable with existing switch for 'big_windows'
* 'big_windows' default is on

Conflicts:
	src/gui/bedit/bouqueteditor_bouquets.cpp
	src/gui/bedit/bouqueteditor_channels.cpp
	src/gui/bedit/bouqueteditor_chanselect.cpp
This commit is contained in:
svenhoefer
2013-03-25 09:45:22 +01:00
committed by [CST] Focus
parent fc614004cf
commit 4714a30f83
16 changed files with 62 additions and 67 deletions

View File

@@ -117,17 +117,8 @@ CEpgData::CEpgData()
void CEpgData::start()
{
/* This defines the size of the EPG window. We use 90% of the screen width and
* 90% of the screen height. It adjusts itself to the "visible screen" settings
*/
float epgwin_scale_factor = BIG_FONT_FAKTOR; /* stupid useless use of float */
if (g_settings.big_windows)
epgwin_scale_factor = 1;
ox = (frameBuffer->getScreenWidth() / 20 * 18) / (bigFonts ? 1 : epgwin_scale_factor);
oy = (frameBuffer->getScreenHeight() / 20 * 18) / (bigFonts ? 1 : epgwin_scale_factor);
sx = getScreenStartX(ox);
sy = getScreenStartY(oy);
ox = frameBuffer->getScreenWidthRel();
oy = frameBuffer->getScreenHeightRel();
topheight = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_TITLE]->getHeight();
topboxheight = topheight + 6;
@@ -142,6 +133,9 @@ void CEpgData::start()
medlineheight = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO1]->getHeight();
medlinecount = sb / medlineheight;
toph = topboxheight;
sx = getScreenStartX(ox);
sy = getScreenStartY(oy + buttonheight/2); /* button box is handled separately (why?) */
}
void CEpgData::addTextToArray(const std::string & text, int screening) // UTF-8