Fix compiler warnings (-Wconversion)

- THX SatBaby for the info


Origin commit data
------------------
Branch: ni/coolstream
Commit: cd5fd9dab3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-25 (Sat, 25 Jan 2014)



------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2014-01-25 21:11:34 +01:00
parent ed048eebdd
commit 8919d0aba0
6 changed files with 14 additions and 15 deletions

View File

@@ -634,8 +634,8 @@ void CBouquetList::paint()
frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);
int sbc= ((bsize - 1)/ listmaxshow)+ 1; /* bsize is > 0, so sbc is also > 0 */
float sbh= (sb - 4)/ sbc;
int sbh = ((sb - 4) * 1024) / sbc;
int sbs= (selected/listmaxshow);
frameBuffer->paintBoxRel(x+ width- 13, ypos+ 2+ int(sbs* sbh) , 11, int(sbh), COL_MENUCONTENT_PLUS_3);
frameBuffer->paintBoxRel(x+width-13, ypos+2+(sbs*sbh)/1024, 11, sbh/1024, COL_MENUCONTENT_PLUS_3);
}