mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51: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.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 86cdc12c8f
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-22 (Mon, 22 Jan 2018)
Origin message was:
------------------
- 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.
------------------
This commit was generated by Migit
This commit is contained in:
@@ -498,7 +498,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 = frameBuffer->getScreenWidthRel(); //NI
|
||||
full_width = frameBuffer->getWindowWidth(); //NI
|
||||
|
||||
if (g_settings.channellist_additional)
|
||||
width = full_width / 3 * 2;
|
||||
@@ -510,7 +510,7 @@ void CChannelList::calcSize()
|
||||
info_height = 2*fheight + fdescrheight + 2*OFFSET_INNER_SMALL;
|
||||
else
|
||||
info_height = 0;
|
||||
height = frameBuffer->getScreenHeightRel(); //NI
|
||||
height = frameBuffer->getWindowHeight(); //NI
|
||||
height = height - OFFSET_INTER - info_height;
|
||||
|
||||
// calculate x position
|
||||
|
Reference in New Issue
Block a user