From 9643e0fcdd2b2561d70797102c5bb52cedba4cc5 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 9 Jun 2021 12:17:48 +0200 Subject: [PATCH] alerts: fix alpha blending old-commit-hash: ace39431eb256a43b887c0092ebf5a22a51b9ea2 --- selfdrive/ui/qt/onroad.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index e26aff7bc9..20aa70974b 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -164,7 +164,7 @@ void OnroadAlerts::paintEvent(QPaintEvent *event) { // draw background + gradient p.setPen(Qt::NoPen); - p.setCompositionMode(QPainter::CompositionMode_DestinationOver); + p.setCompositionMode(QPainter::CompositionMode_SourceOver); p.setBrush(QBrush(bg)); p.drawRect(r);