- 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

@@ -430,6 +430,17 @@ unsigned int CFrameBuffer::getScreenHeight(bool real)
return g_settings.screen_EndY - g_settings.screen_StartY;
}
unsigned int CFrameBuffer::getScreenWidthRel()
{
// always reduce a possible detailline
return (g_settings.screen_EndX - g_settings.screen_StartX - 2*ConnectLineBox_Width) * (g_settings.big_windows ? 100 : NON_BIG_WINDOWS) / 100;
}
unsigned int CFrameBuffer::getScreenHeightRel()
{
return (g_settings.screen_EndY - g_settings.screen_StartY) * (g_settings.big_windows ? 100 : NON_BIG_WINDOWS) / 100;
}
unsigned int CFrameBuffer::getScreenX()
{
return g_settings.screen_StartX;

View File

@@ -53,6 +53,9 @@ typedef struct fb_var_screeninfo t_fb_var_screeninfo;
#define FADE_STEP 5
#define FADE_RESET 0xFFFF
#define NON_BIG_WINDOWS 85 // %
#define ConnectLineBox_Width 16 // px
/** Ausfuehrung als Singleton */
class CFrameBuffer
{
@@ -143,6 +146,8 @@ class CFrameBuffer
unsigned int getStride() const; // size of a single line in the framebuffer (in bytes)
unsigned int getScreenWidth(bool real = false);
unsigned int getScreenHeight(bool real = false);
unsigned int getScreenWidthRel();
unsigned int getScreenHeightRel();
unsigned int getScreenX();
unsigned int getScreenY();