mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
- change RenderString() default to UTF8
This commit is contained in:
@@ -785,7 +785,7 @@ int CAudioPlayerGui::show()
|
||||
m_frameBuffer->paintBoxRel(x1 - 7, y1 - h - 5, w + 14, h + 10, COL_MENUCONTENT_PLUS_6, RADIUS_SMALL);
|
||||
m_frameBuffer->paintBoxRel(x1 - 4, y1 - h - 3, w + 8, h + 6, COL_MENUCONTENTSELECTED_PLUS_0, RADIUS_SMALL);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]
|
||||
->RenderString(x1,y1,w+1,selectedKey,COL_MENUCONTENTSELECTED_TEXT,0);
|
||||
->RenderString(x1,y1,w+1,selectedKey,COL_MENUCONTENTSELECTED_TEXT);
|
||||
|
||||
g_RCInput->getMsg_ms(&msg, &data, AUDIOPLAYERGUI_SMSKEY_TIMEOUT - 200);
|
||||
|
||||
@@ -1561,7 +1561,7 @@ void CAudioPlayerGui::paintItem(int pos)
|
||||
m_playlist[pos + m_liststart].MetaData.total_time % 60);
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(dura) + 5;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + 10, ypos + m_fheight, m_width - 30 - w,
|
||||
tmp, color, m_fheight, true); // UTF-8
|
||||
tmp, color, m_fheight);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + m_width - 15 - w, ypos + m_fheight,
|
||||
w, dura, color, m_fheight);
|
||||
if ((pos + m_liststart) == m_selected)
|
||||
@@ -1758,7 +1758,7 @@ void CAudioPlayerGui::paintInfo()
|
||||
if (xstart < 10)
|
||||
xstart = 10;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + xstart, m_y + 4 + 1*m_fheight, m_width - 20,
|
||||
tmp, COL_MENUCONTENTSELECTED_TEXT, 0, true); // UTF-8
|
||||
tmp, COL_MENUCONTENTSELECTED_TEXT);
|
||||
|
||||
// second line (Artist/Title...)
|
||||
GetMetaData(m_curr_audiofile);
|
||||
@@ -1783,7 +1783,7 @@ void CAudioPlayerGui::paintInfo()
|
||||
xstart=(m_width-w)/2;
|
||||
if (xstart < 10)
|
||||
xstart=10;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x+xstart, m_y +4+ 2*m_fheight, m_width- 20, tmp, COL_MENUCONTENTSELECTED_TEXT, 0, true); // UTF-8
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x+xstart, m_y +4+ 2*m_fheight, m_width- 20, tmp, COL_MENUCONTENTSELECTED_TEXT);
|
||||
|
||||
// reset so fields get painted always
|
||||
m_metainfo.clear();
|
||||
@@ -1860,7 +1860,7 @@ void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
ibox->paint(false);
|
||||
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + 10, ypos2 + 2 + 1*m_fheight, m_width- 80,
|
||||
m_playlist[m_selected].MetaData.title, COL_MENUCONTENTDARK_TEXT, 0, true); // UTF-8
|
||||
m_playlist[m_selected].MetaData.title, COL_MENUCONTENTDARK_TEXT);
|
||||
std::string tmp;
|
||||
if (m_playlist[m_selected].MetaData.genre.empty())
|
||||
tmp = m_playlist[m_selected].MetaData.date;
|
||||
@@ -1874,7 +1874,7 @@ void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
}
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp) + 10;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + m_width - w - 5, ypos2 + 2 + 1*m_fheight,
|
||||
w, tmp, COL_MENUCONTENTDARK_TEXT, 0, true); // UTF-8
|
||||
w, tmp, COL_MENUCONTENTDARK_TEXT);
|
||||
tmp = m_playlist[m_selected].MetaData.artist;
|
||||
if (!(m_playlist[m_selected].MetaData.album.empty()))
|
||||
{
|
||||
@@ -1883,7 +1883,7 @@ void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
tmp += ')';
|
||||
}
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + 10, ypos2 + 2*m_fheight - 2, m_width - 20,
|
||||
tmp, COL_MENUCONTENTDARK_TEXT, 0, true); // UTF-8
|
||||
tmp, COL_MENUCONTENTDARK_TEXT);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2292,7 +2292,7 @@ bool CAudioPlayerGui::getNumericInput(neutrino_msg_t& msg, int& val) {
|
||||
int h = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]->getHeight();
|
||||
m_frameBuffer->paintBoxRel(x1 - 7, y1 - h - 5, w + 14, h + 10, COL_MENUCONTENT_PLUS_6);
|
||||
m_frameBuffer->paintBoxRel(x1 - 4, y1 - h - 3, w + 8, h + 6, COL_MENUCONTENTSELECTED_PLUS_0);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]->RenderString(x1, y1, w + 1, str, COL_MENUCONTENTSELECTED_TEXT, 0);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]->RenderString(x1, y1, w + 1, str, COL_MENUCONTENTSELECTED_TEXT);
|
||||
while (true)
|
||||
{
|
||||
g_RCInput->getMsg(&msg, &data, 100);
|
||||
|
Reference in New Issue
Block a user