mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
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
Origin commit data
------------------
Commit: 4714a30f83
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-03-25 (Mon, 25 Mar 2013)
Origin message was:
------------------
- 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:
@@ -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
|
||||
|
Reference in New Issue
Block a user