neutrino: fix possible div-by-zero in scrollbar calculation

Origin commit data
------------------
Branch: ni/coolstream
Commit: a33086568b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-05-29 (Wed, 29 May 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-05-29 15:33:21 +02:00
committed by Jacek Jendrzej
parent 7be6ce63fa
commit 5f1b5fbdcb
11 changed files with 28 additions and 2 deletions

View File

@@ -615,7 +615,7 @@ void CBouquetList::paint()
int sb = fheight* listmaxshow;
frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);
int sbc= ((bsize - 1)/ listmaxshow)+ 1;
int sbc= ((bsize - 1)/ listmaxshow)+ 1; /* bsize is > 0, so sbc is also > 0 */
float sbh= (sb - 4)/ sbc;
int sbs= (selected/listmaxshow);