mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-01 18:19:56 +12:00
Fixed: Wrong type for max() in msgBox
This commit is contained in:
parent
c77aee2211
commit
932bb15e79
|
@ -605,7 +605,7 @@ namespace Menu {
|
|||
|
||||
box_contents = Draw::createBox(x, y, width, height, Theme::c("hi_fg"), true, title) + Mv::d(1);
|
||||
for (const auto& line : content) {
|
||||
box_contents += Mv::save + Mv::r(max(0ul, (width / 2) - (Fx::uncolor(line).size() / 2) - 1)) + line + Mv::restore + Mv::d(1);
|
||||
box_contents += Mv::save + Mv::r(max((size_t)0, (width / 2) - (Fx::uncolor(line).size() / 2) - 1)) + line + Mv::restore + Mv::d(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue