port g_settings.window_size to framebuffer_ng

Origin commit data
------------------
Branch: ni/coolstream
Commit: 377761ce52
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-09-03 (Tue, 03 Sep 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-09-03 10:07:15 +02:00
parent af252a3d89
commit 7bc1be0f63
2 changed files with 4 additions and 12 deletions

View File

@@ -356,24 +356,16 @@ unsigned int CFrameBuffer::getScreenHeight(bool real)
return g_settings.screen_EndY - g_settings.screen_StartY;
}
unsigned int CFrameBuffer::getScreenPercentRel(bool force_small)
{
if (force_small || !g_settings.big_windows)
return NON_BIG_WINDOWS;
return 100;
}
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;
}