format: reformatting files

This commit is contained in:
2026-07-13 15:30:43 +08:00
parent 7522543c48
commit e5eeaddf2f
511 changed files with 274803 additions and 207140 deletions
+4 -3
View File
@@ -190,7 +190,8 @@ void HistogramScope::DrawScopeSoftware(QPainter &p, const QImage &image)
max_count = qMax(max_count, b_counts[i]);
}
auto draw_channel = [&](const std::array<int, 256> &counts, const QColor &color) {
auto draw_channel = [&](const std::array<int, 256> &counts,
const QColor &color) {
QPen pen(color);
pen.setWidth(2);
p.setPen(pen);
@@ -198,8 +199,8 @@ void HistogramScope::DrawScopeSoftware(QPainter &p, const QImage &image)
QVector<QPointF> points;
points.reserve(256);
for (int i = 0; i < 256; ++i) {
float x = histogram_start_dim_x +
(float(i) / 255.0f) * histogram_dim_x;
float x =
histogram_start_dim_x + (float(i) / 255.0f) * histogram_dim_x;
float normalized = float(counts[i]) / float(max_count);
float y = histogram_start_dim_y +
histogram_dim_y *