mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
driver/framebuffer.cpp: switch from window_size to window width/height,
allow 50% min window size
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0dc92e99f9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-07 (Thu, 07 Nov 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -459,14 +459,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