mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
upnpbrowser: fix calculation of upper info box height
Origin commit data
------------------
Commit: dc13d0ff28
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-15 (Mon, 15 Aug 2016)
Origin message was:
------------------
- upnpbrowser: fix calculation of upper info box height
This commit is contained in:
@@ -104,12 +104,12 @@ void CUpnpBrowserGui::Init()
|
|||||||
m_width = m_frameBuffer->getScreenWidthRel();
|
m_width = m_frameBuffer->getScreenWidthRel();
|
||||||
m_height = m_frameBuffer->getScreenHeightRel();
|
m_height = m_frameBuffer->getScreenHeightRel();
|
||||||
|
|
||||||
m_sheight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight();
|
m_iheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO]->getHeight();
|
||||||
m_theight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
m_theight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
||||||
m_buttonHeight = m_theight;
|
m_buttonHeight = m_theight;
|
||||||
m_mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
m_mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
||||||
m_fheight = g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->getHeight();
|
m_fheight = g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->getHeight();
|
||||||
m_title_height = m_mheight*2 + 20 + m_sheight + 4;
|
m_title_height = m_iheight*3 + 20; // 3 lines + offset
|
||||||
m_info_height = m_mheight*2;
|
m_info_height = m_mheight*2;
|
||||||
m_listmaxshow = (m_height - m_info_height - m_title_height - m_theight - 2*m_buttonHeight) / (m_fheight);
|
m_listmaxshow = (m_height - m_info_height - m_title_height - m_theight - 2*m_buttonHeight) / (m_fheight);
|
||||||
m_height = m_theight + m_info_height + m_title_height + 2*m_buttonHeight + m_listmaxshow * m_fheight; // recalc height
|
m_height = m_theight + m_info_height + m_title_height + 2*m_buttonHeight + m_listmaxshow * m_fheight; // recalc height
|
||||||
|
@@ -79,10 +79,10 @@ class CUpnpBrowserGui : public CMenuTarget, public CListHelpers
|
|||||||
unsigned int m_listmaxshow;
|
unsigned int m_listmaxshow;
|
||||||
unsigned int m_deviceliststart;
|
unsigned int m_deviceliststart;
|
||||||
unsigned int m_selecteddevice;
|
unsigned int m_selecteddevice;
|
||||||
int m_fheight; // Fonthoehe Inhalt
|
int m_fheight; // items font height
|
||||||
int m_theight; // Fonthoehe Titel
|
int m_theight; // title font height
|
||||||
int m_mheight; // Fonthoehe Info
|
int m_mheight; // lower box font height
|
||||||
int m_sheight; // Fonthoehe Status
|
int m_iheight; // upper box font height
|
||||||
int m_buttonHeight;
|
int m_buttonHeight;
|
||||||
int m_title_height;
|
int m_title_height;
|
||||||
int m_info_height;
|
int m_info_height;
|
||||||
|
Reference in New Issue
Block a user