mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
osd_setup: introduce g_settings.window_size to scale some windows
* remove g_settings.big_windows
* add setup window (use up/down to change size)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6ed30528f9
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-09-02 (Mon, 02 Sep 2013)
Origin message was:
------------------
- osd_setup: introduce g_settings.window_size to scale some windows
* remove g_settings.big_windows
* add setup window (use up/down to change size)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -457,24 +457,16 @@ unsigned int CFrameBuffer::getScreenHeight(bool real)
|
||||
return g_settings.screen_EndY - g_settings.screen_StartY;
|
||||
}
|
||||
|
||||
unsigned int CFrameBuffer::getScreenPercentRel(bool force_small)
|
||||
{
|
||||
int percent = 100;
|
||||
if (force_small || !g_settings.big_windows)
|
||||
percent = NON_BIG_WINDOWS;
|
||||
return percent;
|
||||
}
|
||||
|
||||
unsigned int CFrameBuffer::getScreenWidthRel(bool force_small)
|
||||
{
|
||||
int percent = getScreenPercentRel(force_small);
|
||||
int percent = force_small ? WINDOW_SIZE_MIN : g_settings.window_size;
|
||||
// always reduce a possible detailline
|
||||
return (g_settings.screen_EndX - g_settings.screen_StartX - 2*ConnectLineBox_Width) * percent / 100;
|
||||
}
|
||||
|
||||
unsigned int CFrameBuffer::getScreenHeightRel(bool force_small)
|
||||
{
|
||||
int percent = getScreenPercentRel(force_small);
|
||||
int percent = force_small ? WINDOW_SIZE_MIN : g_settings.window_size;
|
||||
return (g_settings.screen_EndY - g_settings.screen_StartY) * percent / 100;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user