mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
Merge branch 'cst-next' of git://coolstreamtech.de/cst-public-gui-neutrino into ni/cst-next
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7a28b05f26
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-15 (Mon, 15 Aug 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -77,6 +77,8 @@ CUpnpBrowserGui::CUpnpBrowserGui()
|
||||
|
||||
Init();
|
||||
|
||||
font_item = SNeutrinoSettings::FONT_TYPE_MENU;
|
||||
|
||||
dline = NULL;
|
||||
image = NULL;
|
||||
|
||||
@@ -112,7 +114,7 @@ void CUpnpBrowserGui::Init()
|
||||
m_theight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
||||
m_buttonHeight = m_theight;
|
||||
m_mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
||||
m_fheight = g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->getHeight();
|
||||
m_fheight = g_Font[font_item]->getHeight();
|
||||
m_title_height = m_iheight*3 + 20; // 3 lines + offset
|
||||
m_info_height = m_mheight*2;
|
||||
m_listmaxshow = (m_height - m_info_height - m_title_height - m_theight - 2*m_buttonHeight) / (m_fheight);
|
||||
@@ -941,10 +943,10 @@ void CUpnpBrowserGui::paintDevice(unsigned int _pos)
|
||||
|
||||
std::string name = m_devices[pos].friendlyname;
|
||||
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->getRenderWidth(name) + 5;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->RenderString(m_x + 10, ypos + m_fheight, m_width - 30 - w,
|
||||
int w = g_Font[font_item]->getRenderWidth(name) + 5;
|
||||
g_Font[font_item]->RenderString(m_x + 10, ypos + m_fheight, m_width - 30 - w,
|
||||
num, color, m_fheight);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->RenderString(m_x + m_width - 15 - w, ypos + m_fheight,
|
||||
g_Font[font_item]->RenderString(m_x + m_width - 15 - w, ypos + m_fheight,
|
||||
w, name, color, m_fheight);
|
||||
}
|
||||
|
||||
@@ -1042,7 +1044,7 @@ void CUpnpBrowserGui::paintItem(std::vector<UPnPEntry> *entries, unsigned int po
|
||||
|
||||
std::string name = entry->title;
|
||||
char tmp_time[] = "00:00:00.0";
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->getRenderWidth(tmp_time);
|
||||
int w = g_Font[font_item]->getRenderWidth(tmp_time);
|
||||
|
||||
int icon_w = 0;
|
||||
int icon_h = 0;
|
||||
@@ -1053,8 +1055,8 @@ void CUpnpBrowserGui::paintItem(std::vector<UPnPEntry> *entries, unsigned int po
|
||||
icon_o = icon_w + 10;
|
||||
m_frameBuffer->paintIcon(fileicon, m_x + 10, ypos + (m_fheight - icon_h) / 2);
|
||||
}
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->RenderString(m_x + m_width - 15 - 10 - w, ypos + m_fheight, w, info, color, m_fheight);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]->RenderString(m_x + 10 + icon_o, ypos + m_fheight, m_width - icon_o - 15 - 2*10 - w, name, color, m_fheight);
|
||||
g_Font[font_item]->RenderString(m_x + m_width - 15 - 10 - w, ypos + m_fheight, w, info, color, m_fheight);
|
||||
g_Font[font_item]->RenderString(m_x + 10 + icon_o, ypos + m_fheight, m_width - icon_o - 15 - 2*10 - w, name, color, m_fheight);
|
||||
}
|
||||
|
||||
void CUpnpBrowserGui::paintItemInfo(UPnPEntry *entry)
|
||||
|
Reference in New Issue
Block a user