1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-23 02:30:49 +01:00

Compare commits

..

No commits in common. "398ef2c4f5b74badbc04b064c1e0a70f8da35400" and "ac414835309ac96b95997eba3edd846844858a22" have entirely different histories.

2 changed files with 10 additions and 7 deletions

View File

@ -282,6 +282,7 @@ void RasterTile::processPoints(QList<MapData::Point> &points,
attr.value(LITVIS).toUInt(), range, attr.value(LITVIS).toUInt(), range,
attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble())); attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble()));
slMap.insert(point.pos()); slMap.insert(point.pos());
qDebug() << attr;
} else } else
lightsMap.insert(point.pos(), color); lightsMap.insert(point.pos(), color);
} else if (point.type()>>16 == FOGSIG) } else if (point.type()>>16 == FOGSIG)

View File

@ -256,7 +256,7 @@ void RasterTile::drawSectorLights(QPainter *painter,
QRect rect(lightRect(pos, start.range ? start.range : 6)); QRect rect(lightRect(pos, start.range ? start.range : 6));
painter->setPen(QPen(Qt::black, 6, Qt::SolidLine, painter->setPen(QPen(Qt::black, 6, Qt::SolidLine,
Qt::FlatCap)); Qt::FlatCap));
painter->drawArc(rect, a1 * 16, as * 16); painter->drawArc(rect, a1 * 16, as * 16);
painter->setPen(QPen(Style::color(start.color), 4, painter->setPen(QPen(Style::color(start.color), 4,
@ -274,13 +274,15 @@ void RasterTile::drawSectorLights(QPainter *painter,
} }
} }
} else { } else {
QRect rect(lightRect(pos, p->lights.range)); if (p->lights.color && p->lights.range) {
QRect rect(lightRect(pos, p->lights.range));
painter->setPen(QPen(Qt::black, 6, Qt::SolidLine, Qt::FlatCap)); painter->setPen(QPen(Qt::black, 6, Qt::SolidLine, Qt::FlatCap));
painter->drawArc(rect, 0, 360 * 16); painter->drawArc(rect, 0, 360 * 16);
painter->setPen(QPen(Style::color(p->lights.color), 4, painter->setPen(QPen(Style::color(p->lights.color), 4,
Qt::SolidLine, Qt::FlatCap)); Qt::SolidLine, Qt::FlatCap));
painter->drawArc(rect, 0, 360 * 16); painter->drawArc(rect, 0, 360 * 16);
}
} }
} }
} }