From 41e8b7094af02ba3ccee42c18bb6ad3a2cc386c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 6 Feb 2025 01:24:48 +0100 Subject: [PATCH] Outline sector lights --- src/map/ENC/rastertile.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/map/ENC/rastertile.cpp b/src/map/ENC/rastertile.cpp index e75c5a5b..35d7cc2c 100644 --- a/src/map/ENC/rastertile.cpp +++ b/src/map/ENC/rastertile.cpp @@ -228,9 +228,12 @@ void RasterTile::drawSectorLights(QPainter *painter, if (l.visibility == 3 || l.visibility >= 6) painter->setPen(QPen(Qt::black, 1, Qt::DashLine)); - else - painter->setPen(QPen(Style::color(l.color), 5, Qt::SolidLine, + else { + painter->setPen(QPen(Qt::black, 6, Qt::SolidLine, Qt::FlatCap)); + painter->drawArc(rect, a1 * 16, (a2 - a1) * 16); + painter->setPen(QPen(Style::color(l.color), 4, Qt::SolidLine, Qt::FlatCap)); + } painter->drawArc(rect, a1 * 16, (a2 - a1) * 16);