mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 02:52:04 +08:00
alerts: fix alpha blending
old-commit-hash: ace39431eb256a43b887c0092ebf5a22a51b9ea2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user