mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
neutrino: fix possible div-by-zero in scrollbar calculation
This commit is contained in:
committed by
Jacek Jendrzej
parent
5420e509da
commit
a33086568b
@@ -1874,6 +1874,8 @@ void CAudioPlayerGui::paint()
|
||||
|
||||
int sbc = ((m_playlist.size() - 1) / m_listmaxshow) + 1;
|
||||
int sbs = (m_selected / m_listmaxshow);
|
||||
if (sbc < 1)
|
||||
sbc = 1;
|
||||
|
||||
m_frameBuffer->paintBoxRel(m_x + m_width - 13, ypos + 2 + sbs*(sb-4)/sbc , 11, (sb-4)/sbc, COL_MENUCONTENT_PLUS_3, RADIUS_SMALL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user