mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
framebuffer-ng: port commit 1640aeae
to fix window sizes
Origin commit data
------------------
Branch: ni/coolstream
Commit: e508ba1fe8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-11-15 (Fri, 15 Nov 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -305,14 +305,14 @@ unsigned int CFrameBuffer::getScreenHeight(bool real)
|
||||
|
||||
unsigned int CFrameBuffer::getScreenWidthRel(bool force_small)
|
||||
{
|
||||
int percent = force_small ? WINDOW_SIZE_MIN : g_settings.window_size;
|
||||
int percent = force_small ? WINDOW_SIZE_MIN_FORCED : g_settings.window_width;
|
||||
// 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 = force_small ? WINDOW_SIZE_MIN : g_settings.window_size;
|
||||
int percent = force_small ? WINDOW_SIZE_MIN_FORCED : g_settings.window_height;
|
||||
return (g_settings.screen_EndY - g_settings.screen_StartY) * percent / 100;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user