show:降低进度条宽度,适应手机横屏情况。
This commit is contained in:
parent
ceaf50ad7f
commit
444db54ce8
@ -123,7 +123,7 @@ void CTransProtocal::display_progress(float percent)
|
|||||||
if (percent > 1.0 || percent < 0.0) {
|
if (percent > 1.0 || percent < 0.0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const int barWidth = 50;
|
const int barWidth = 38;
|
||||||
int pos = barWidth * percent;
|
int pos = barWidth * percent;
|
||||||
|
|
||||||
std::cout << "[";
|
std::cout << "[";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user