mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
neutrino: make big EPG window run-time configurable
This was configurable with "-DUSE_SPACE_EFFICIENTLY" but can easily
be integrated into the OSD menu.
TODO: better locale texts could probably be found.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@967 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: e76b372031
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-12-26 (Sun, 26 Dec 2010)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -123,17 +123,15 @@ CEpgData::CEpgData()
|
||||
|
||||
void CEpgData::start()
|
||||
{
|
||||
/* if you want usably sized epg windows, compile with "-DUSE_SPACE_EFFICIENTLY" */
|
||||
#ifndef USE_SPACE_EFFICIENTLY
|
||||
#define EPGWIN_SCALE_FACTOR BIG_FONT_FAKTOR
|
||||
#else
|
||||
#define EPGWIN_SCALE_FACTOR 1
|
||||
#endif
|
||||
/* 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
|
||||
*/
|
||||
ox = (frameBuffer->getScreenWidth() / 20 * 18) / (bigFonts ? 1 : EPGWIN_SCALE_FACTOR);
|
||||
oy = (frameBuffer->getScreenHeight() / 20 * 18) / (bigFonts ? 1 : EPGWIN_SCALE_FACTOR);
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user