This commit is contained in:
Your Name
2024-05-02 23:12:50 -05:00
parent 7ca074cd79
commit 98f79c0c1f

View File

@@ -892,9 +892,10 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
QColor final_color = QColor::fromHslF(static_cast<float>(_h / 360.f), adjusted_saturation, adjusted_lightness, dynamic_alpha);
bg.setColorAt(lin_grad_point, final_color);
}
i += (i + 2) < max_len ? 1 : 0; // Skipping a point to optimize rendering
}
}
} catch () {
// Default shading if for some reason the above code fails
bg = QLinearGradient(0, height(), 0, 0);