mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- upnpbrowser.cpp: center horizontally
This commit is contained in:
@@ -127,7 +127,7 @@ int CUpnpBrowserGui::exec(CMenuTarget* parent, const std::string & /*actionKey*/
|
|||||||
#endif
|
#endif
|
||||||
m_LastMode=(CNeutrinoApp::getInstance()->getLastMode());
|
m_LastMode=(CNeutrinoApp::getInstance()->getLastMode());
|
||||||
|
|
||||||
m_width=(g_settings.screen_EndX - g_settings.screen_StartX) - ConnectLineBox_Width;
|
m_width=(g_settings.screen_EndX - g_settings.screen_StartX) - 2*ConnectLineBox_Width;
|
||||||
m_height = (g_settings.screen_EndY - g_settings.screen_StartY);
|
m_height = (g_settings.screen_EndY - g_settings.screen_StartY);
|
||||||
|
|
||||||
m_sheight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight();
|
m_sheight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight();
|
||||||
@@ -140,7 +140,9 @@ int CUpnpBrowserGui::exec(CMenuTarget* parent, const std::string & /*actionKey*/
|
|||||||
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
|
||||||
|
|
||||||
m_x=getScreenStartX( m_width + ConnectLineBox_Width ) + ConnectLineBox_Width;
|
m_x=getScreenStartX( m_width );
|
||||||
|
if (m_x < ConnectLineBox_Width)
|
||||||
|
m_x = ConnectLineBox_Width;
|
||||||
m_y=getScreenStartY( m_height );
|
m_y=getScreenStartY( m_height );
|
||||||
|
|
||||||
// Stop sectionsd
|
// Stop sectionsd
|
||||||
|
Reference in New Issue
Block a user