This commit is contained in:
Igor Pavlov
2017-04-30 00:00:00 +00:00
committed by Kornel
parent 603abd5528
commit 2efa10565a
442 changed files with 15479 additions and 8525 deletions
+6 -7
View File
@@ -18,7 +18,7 @@ void CPercentPrinterState::ClearCurState()
FileName.Empty();
}
void CProgressBox::Init(const AString &title)
void CProgressBox::Init(const char *title)
{
_title = title;
_wasPrinted = false;
@@ -218,14 +218,13 @@ void CProgressBox::Print()
unsigned filled = 0;
if (total != (UInt64)(Int64)-1 && total != 0)
filled = (unsigned)(cur * numChars / total);
if (filled > numChars)
filled = numChars;
unsigned i = 0;
if (filled < numChars)
{
for (i = 0; i < filled; i++)
_perc += '=';
}
for (i = 0; i < filled; i++)
_perc += (char)(Byte)0xDB; // '=';
for (; i < numChars; i++)
_perc += '.';
_perc += (char)(Byte)0xB0; // '.';
}
_perc.Add_Space();