Skip to content

Commit

Permalink
Outline sector lights
Browse files Browse the repository at this point in the history
  • Loading branch information
tumic0 committed Feb 6, 2025
1 parent 0ee28d7 commit 41e8b70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/map/ENC/rastertile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 41e8b70

Please sign in to comment.