This commit is contained in:
Your Name
2024-05-17 14:19:00 -05:00
parent ad47532996
commit 144e388a1a

View File

@@ -441,7 +441,7 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) {
p.restore(); p.restore();
if (!scene.hide_max_speed) { if (!scene.hide_max_speed) {
drawSpeedWidget (p, 60, 45, const QString("MAX"), const QString("33"), const QColor(0xff, 0xff, 0xff)); drawSpeedWidget(p, 60, 45, QString("MAX"), QString("33"), QColor(0xff, 0xff, 0xff));
} }
// Draw FrogPilot widgets // Draw FrogPilot widgets
@@ -522,7 +522,7 @@ void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int &x, int &y, const Q
int bottom_radius = has_eu_speed_limit ? 100 : 32; int bottom_radius = has_eu_speed_limit ? 100 : 32;
QRect set_speed_rect(QPoint(x + (default_size.width() - set_speed_size.width()) / 2, y), set_speed_size); QRect set_speed_rect(QPoint(x + (default_size.width() - set_speed_size.width()) / 2, y), set_speed_size);
p.setPen(QPen(color), 10)); p.setPen(QPen(colorSpeed), 10));
p.setBrush(blackColor(166)); p.setBrush(blackColor(166));
drawRoundedRect(p, set_speed_rect, top_radius, top_radius, bottom_radius, bottom_radius); drawRoundedRect(p, set_speed_rect, top_radius, top_radius, bottom_radius, bottom_radius);