This commit is contained in:
Your Name
2024-05-02 23:19:34 -05:00
parent 93bf01f185
commit b94be3e23e

View File

@@ -895,7 +895,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
i += (i + 2) < max_len ? 1 : 0; // Skipping a point to optimize rendering i += (i + 2) < max_len ? 1 : 0; // Skipping a point to optimize rendering
} }
} catch (const exception& e) { } catch (const std::exception& e) {
// Default shading if for some reason the above code fails // Default shading if for some reason the above code fails
bg = QLinearGradient(0, height(), 0, 0); bg = QLinearGradient(0, height(), 0, 0);
bg.setColorAt(0.0, QColor(center_lane_color.red(), center_lane_color.green(), center_lane_color.blue(), static_cast<int>(other_alpha * 255 * 0.4))); bg.setColorAt(0.0, QColor(center_lane_color.red(), center_lane_color.green(), center_lane_color.blue(), static_cast<int>(other_alpha * 255 * 0.4)));