Registered Member
|
When chunkCount>barWidth and chunkCount<2*barWidth the bar ends when chunkNumber=barWidth.
Fix (Applied on SVS-version 480096) Change UNIT32 to double on chunks_per_pixel -------------------------------------- chunkbar.cpp
Pär H [/code] |
Registered Member
|
Sorry, Korrektion.
Chunks did never reach 100%
|
Moderator
|
|
Registered Member
|
You missed the calculation of fac, the roundning of the value almost newer reach 100%, 99% is interpreted as 75 when setting colour.
For example:
|
Moderator
|
|
Registered Member
|
Additional korrektion.
change: int fac = int(100*((double)num_dl / (jEnd - jStart) + 0.5)); to int fac = int(100*((double)num_dl / (jEnd - jStart)) + 0.5); ----------- if num_dl=(jEnd-jStart)=5 for example then int(100*(5/5+0.5)) = 150 and 150!=100 when selecting colour korrekt int (100*(5/5))+0.5) = int (100.5) = 100
Last edited by Pär H on Wed Nov 16, 2005 9:01 pm, edited 1 time in total.
|
Moderator
|
|
Registered Member
|
|
Moderator
|
Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]