diff --git a/firmware/common/ui_widget.cpp b/firmware/common/ui_widget.cpp index 16b85dcc..799647bf 100644 --- a/firmware/common/ui_widget.cpp +++ b/firmware/common/ui_widget.cpp @@ -573,7 +573,7 @@ void ProgressBar::paint(Painter& painter) { const auto sr = screen_rect(); const auto s = style(); - v_scaled = (sr.size().width() * _value) / _max; + v_scaled = (sr.size().width() * (uint64_t)_value) / _max; painter.fill_rectangle({sr.location(), {v_scaled, sr.size().height()}}, style().foreground); painter.fill_rectangle({{sr.location().x() + v_scaled, sr.location().y()}, {sr.size().width() - v_scaled, sr.size().height()}}, s.background);