ui: Better E2E Alert UI Positioning (#1355)

Better E2E Alert UI Positioning
This commit is contained in:
Nayan
2025-10-12 00:21:38 -04:00
committed by GitHub
parent 974a7a3f7d
commit 1e5758e712
+1 -2
View File
@@ -714,9 +714,8 @@ void HudRendererSP::drawSetSpeedSP(QPainter &p, const QRect &surface_rect) {
void HudRendererSP::drawE2eAlert(QPainter &p, const QRect &surface_rect, const QString &alert_alt_text) {
int size = devUiInfo > 0 ? e2e_alert_small : e2e_alert_large;
int x = surface_rect.center().x() + surface_rect.width() / 4;
int y = surface_rect.center().y() + 40;
int y = surface_rect.center().y() + 20;
x += devUiInfo > 0 ? 0 : 50;
y += devUiInfo > 0 ? 0 : 80;
QRect alertRect(x - size, y - size, size * 2, size * 2);
// Alert Circle