Fix compiler warnings (-Wconversion)

- THX SatBaby for the info


Origin commit data
------------------
Commit: cd5fd9dab3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-25 (Sat, 25 Jan 2014)
This commit is contained in:
Michael Liebmann
2014-01-25 21:11:34 +01:00
parent 84577152ea
commit c20ef7ed23
6 changed files with 14 additions and 15 deletions

View File

@@ -456,10 +456,9 @@ void CBookmarkManager::paint()
int sbc= ((bookmarks.size()- 1)/ listmaxshow)+ 1;
if (sbc < 1)
sbc = 1;
int sbh = ((sb - 4) * 1024) / sbc;
float sbh= (sb- 4)/ sbc;
frameBuffer->paintBoxRel(x+ width- 13, ypos+ 2+ int(page_nr * sbh) , 11, int(sbh), COL_MENUCONTENT_PLUS_3);
frameBuffer->paintBoxRel(x+width-13, ypos+2+(page_nr*sbh)/1024, 11, sbh/1024, COL_MENUCONTENT_PLUS_3);
}
paintFoot();