CChannelList/CUpnpBrowserGui: add missing reinit for corner modes

Required eg. if corner settings has been changed by user on runtime.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0943c467e2
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-23 (Sun, 23 Apr 2017)



------------------
This commit was generated by Migit
This commit is contained in:
2017-04-23 15:06:16 +02:00
parent 5752e1e855
commit 3d811a3370
2 changed files with 7 additions and 1 deletions

View File

@@ -2119,6 +2119,7 @@ void CChannelList::paintHead()
}
header->setDimensionsAll(x, y, full_width, theight);
header->setCorner(RADIUS_LARGE, CORNER_TOP);
if (bouquet && bouquet->zapitBouquet && bouquet->zapitBouquet->bLocked != g_settings.parentallock_defaultlocked)
header->setIcon(NEUTRINO_ICON_LOCK);

View File

@@ -941,6 +941,7 @@ void CUpnpBrowserGui::paintDeviceInfo()
tmp += m_devices[m_selecteddevice].modelurl;
topbox.setDimensionsAll(m_x, m_y, m_width, m_topbox_height);
topbox.setCorner(RADIUS_LARGE);
topbox.setText(tmp, CTextBox::AUTO_WIDTH);
topbox.paint0();
}
@@ -991,7 +992,7 @@ void CUpnpBrowserGui::paintDevices()
header.addContextButton(NEUTRINO_ICON_BUTTON_MUTE_SMALL);
else
header.removeContextButtons();
//header.enableShadow();
header.setCorner(RADIUS_LARGE, CORNER_TOP);
header.paint(CC_SAVE_SCREEN_NO);
// Items
@@ -1012,6 +1013,7 @@ void CUpnpBrowserGui::paintDevices()
m_frameBuffer->paintBoxRel(m_x + m_width, m_item_y + OFFSET_SHADOW, OFFSET_SHADOW, sb, COL_SHADOW_PLUS_0);
// Foot
footer.setCorner(RADIUS_LARGE, CORNER_BOTTOM);
footer.paintButtons(m_x, m_footer_y, m_width, m_footer_height, 1, &RescanButton, m_width/2);
paintItem2DetailsLine(-1); // clear it
@@ -1148,6 +1150,7 @@ void CUpnpBrowserGui::paintItemInfo(UPnPEntry *entry)
}
}
topbox.setCorner(RADIUS_LARGE);
topbox.setText(tmp, CTextBox::AUTO_WIDTH);
topbox.paint0();
}
@@ -1197,7 +1200,9 @@ void CUpnpBrowserGui::paintDetails(UPnPEntry *entry, bool use_playing)
char tmp_time[] = "000:00";
int timebox_width = timebox.getFont()->getRenderWidth(tmp_time) + OFFSET_INNER_MID*2;
infobox.setDimensionsAll(m_x, m_infobox_y, m_width - OFFSET_SHADOW - OFFSET_INTER - timebox_width, m_infobox_height);
infobox.setCorner(RADIUS_LARGE);
timebox.setDimensionsAll(m_x + m_width - timebox_width, infobox.getYPos(), timebox_width, m_infobox_height);
timebox.setCorner(RADIUS_LARGE);
printf("paintDetails: use_playing %d shown %d\n", use_playing, m_playing_entry_is_shown);
if ((!use_playing) && entry->isdir){