mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- framebuffer: better name for getWindowWidth/Height() functions
getScreenWidth/HeightRel() was confusing because it depends on users window settings. Replace names in old unused framebuffer code too. Signed-off-by: Thilo Graf <dbt@novatux.de> Conflicts: gui/channellist.cpp
This commit is contained in:
@@ -269,16 +269,16 @@ unsigned int CFrameBuffer::getScreenHeight(bool real)
|
||||
return g_settings.screen_EndY - g_settings.screen_StartY;
|
||||
}
|
||||
|
||||
unsigned int CFrameBuffer::getScreenWidthRel(bool force_small)
|
||||
unsigned int CFrameBuffer::getWindowWidth(bool force_small)
|
||||
{
|
||||
int percent = force_small ? WINDOW_SIZE_MIN_FORCED : g_settings.window_width;
|
||||
int percent = force_small ? WINDOW_SIZE_SMALL : g_settings.window_width;
|
||||
// always reduce a possible detailsline
|
||||
return (g_settings.screen_EndX - g_settings.screen_StartX - 2*DETAILSLINE_WIDTH) * percent / 100;
|
||||
}
|
||||
|
||||
unsigned int CFrameBuffer::getScreenHeightRel(bool force_small)
|
||||
unsigned int CFrameBuffer::getWindowHeight(bool force_small)
|
||||
{
|
||||
int percent = force_small ? WINDOW_SIZE_MIN_FORCED : g_settings.window_height;
|
||||
int percent = force_small ? WINDOW_SIZE_SMALL : g_settings.window_height;
|
||||
return (g_settings.screen_EndY - g_settings.screen_StartY) * percent / 100;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user