mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
neutrino: avoid float for percent calculations
Origin commit data
------------------
Branch: ni/coolstream
Commit: fb6633b7aa
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-12-25 (Sun, 25 Dec 2011)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -888,7 +888,7 @@ void CLCD::showAudioProgress(const char perc, bool isMuted)
|
||||
if (mode == MODE_AUDIO)
|
||||
{
|
||||
display.draw_fill_rect (11,53,73,61, CLCDDisplay::PIXEL_OFF);
|
||||
int dp = int( perc/100.0*61.0+12.0);
|
||||
int dp = perc * 61 / 100 + 12;
|
||||
display.draw_fill_rect (11,54,dp,60, CLCDDisplay::PIXEL_ON);
|
||||
if(isMuted)
|
||||
{
|
||||
|
Reference in New Issue
Block a user