From 8b0294668565b80ab6b9182c4eaf7961bf2eb3d5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 13 Sep 2013 20:57:43 +0200 Subject: [PATCH] CListBox: remove float type Is not really required Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/76aa02db425f5e8806d435a8bbe255c9be75b2bd Author: Thilo Graf Date: 2013-09-13 (Fri, 13 Sep 2013) ------------------ This commit was generated by Migit --- src/gui/widget/listbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/listbox.cpp b/src/gui/widget/listbox.cpp index 57d37cfee..236f4137e 100644 --- a/src/gui/widget/listbox.cpp +++ b/src/gui/widget/listbox.cpp @@ -73,10 +73,10 @@ void CListBox::paint() if (sbc < 1) sbc = 1; - float sbh= (sb- 4)/ sbc; + int sbh= (sb- 4)/ 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 , 11, sbh, COL_MENUCONTENT_PLUS_3); } void CListBox::paintHead()