From 494860c201d029530ecaa15ad01d29f4ab372980 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 10 May 2021 22:39:28 -0700 Subject: [PATCH] remove offset from full screen onroad alerts old-commit-hash: 38741b2e08c31516d269ba26d34900d17038202a --- selfdrive/ui/qt/onroad.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index cdc78a4eb5..755d6d3d9c 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -160,9 +160,9 @@ void OnroadAlerts::paintEvent(QPaintEvent *event) { // TODO: offset from center to match old NVG UI, but why was it this way? bool l = text1.length() > 15; configFont(p, "Open Sans", l ? 132 : 177, "Bold"); - p.drawText(QRect(0, r.y() + (l ? 240 : 270), width() - 60, 350), Qt::AlignHCenter | Qt::TextWordWrap, text1); + p.drawText(QRect(0, r.y() + (l ? 240 : 270), width(), 350), Qt::AlignHCenter | Qt::TextWordWrap, text1); configFont(p, "Open Sans", 88, "Regular"); - p.drawText(QRect(0, r.height() - (l ? 361 : 420), width() - 60, 300), Qt::AlignHCenter | Qt::TextWordWrap, text2); + p.drawText(QRect(0, r.height() - (l ? 361 : 420), width(), 300), Qt::AlignHCenter | Qt::TextWordWrap, text2); } }