1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-26 17:10:38 +00:00

Makes sure percentage reaches 100% at the end of Help update.

This commit is contained in:
FellippeHeitor 2021-01-15 23:00:33 -03:00
parent bd529ffa07
commit a953611c00

View file

@ -13855,7 +13855,7 @@ SUB ideupdatehelpbox
NEXT i
COLOR 0, 7
IF UpdateStep >= 5 THEN
IF UpdateStep = 5 THEN
maxprogresswidth = 52 'arbitrary
percentage = INT(n / c * 100)
percentagechars = INT(maxprogresswidth * n / c)
@ -13863,6 +13863,10 @@ SUB ideupdatehelpbox
percentageMsg$ = STRING$(percentagechars, 219) + STRING$(maxprogresswidth - percentagechars, 176) + STR$(percentage) + "%"
LOCATE p.y + 4, p.x + (p.w \ 2 - LEN(percentageMsg$) \ 2) + 1
PRINT percentageMsg$;
ELSEIF UpdateStep = 6 THEN
percentageMsg$ = STRING$(maxprogresswidth, 219) + "100%"
LOCATE p.y + 4, p.x + (p.w \ 2 - LEN(percentageMsg$) \ 2) + 1
PRINT percentageMsg$;
END IF
'-------- end of custom display changes --------