- colors: add COL_SCROLLBAR_PASSIVE wrapper

This commit is contained in:
vanhofen
2016-10-10 14:19:54 +02:00
committed by svenhoefer
parent 7e7d4e5fc1
commit 6629b64d6c
23 changed files with 26 additions and 22 deletions

View File

@@ -994,7 +994,7 @@ void CUpnpBrowserGui::paintDevices()
paintDevice(count);
int sb = m_item_height * m_listmaxshow;
m_frameBuffer->paintBoxRel(m_x + m_width - 15, m_item_y, 15, sb, COL_MENUCONTENT_PLUS_1);
m_frameBuffer->paintBoxRel(m_x + m_width - 15, m_item_y, 15, sb, COL_SCROLLBAR_PASSIVE_PLUS_0);
unsigned int tmp_max = m_listmaxshow;
if(!tmp_max)
tmp_max = 1;
@@ -1171,7 +1171,7 @@ void CUpnpBrowserGui::paintItems(std::vector<UPnPEntry> *entry, unsigned int sel
paintItem(entry, count, selected);
int sb = m_item_height * m_listmaxshow;
m_frameBuffer->paintBoxRel(m_x + m_width - 15, m_item_y, 15, sb, COL_MENUCONTENT_PLUS_1);
m_frameBuffer->paintBoxRel(m_x + m_width - 15, m_item_y, 15, sb, COL_SCROLLBAR_PASSIVE_PLUS_0);
unsigned int tmp = m_listmaxshow ? m_listmaxshow : 1;//avoid division by zero
int sbc = ((max + offset - 1) / tmp) + 1;
int sbs = ((selected + offset) / tmp);