wip
This commit is contained in:
@@ -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 () {
|
} catch (const 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)));
|
||||||
|
|||||||
Reference in New Issue
Block a user