mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +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:
@@ -494,7 +494,7 @@ void CChannelList::calcSize()
|
||||
|
||||
minitv_is_active = ( (g_settings.channellist_additional == SNeutrinoSettings::CHANNELLIST_ADDITIONAL_MODE_MINITV) && (CNeutrinoApp::getInstance()->getMode() != NeutrinoModes::mode_ts) );
|
||||
// calculate width
|
||||
full_width = minitv_is_active ? (frameBuffer->getScreenWidth()-2*DETAILSLINE_WIDTH) : frameBuffer->getScreenWidthRel();
|
||||
full_width = frameBuffer->getWindowWidth();
|
||||
|
||||
if (g_settings.channellist_additional)
|
||||
width = full_width / 3 * 2;
|
||||
@@ -506,7 +506,7 @@ void CChannelList::calcSize()
|
||||
info_height = 2*fheight + fdescrheight + 2*OFFSET_INNER_SMALL;
|
||||
else
|
||||
info_height = 0;
|
||||
height = minitv_is_active ? frameBuffer->getScreenHeight() : frameBuffer->getScreenHeightRel();
|
||||
height = frameBuffer->getWindowHeight();
|
||||
height = height - OFFSET_INTER - info_height;
|
||||
|
||||
// calculate x position
|
||||
|
Reference in New Issue
Block a user