1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-05-11 21:57:31 +02:00

Refactoring

This commit is contained in:
Martin Tůma 2025-05-10 20:15:51 +02:00
parent f3b97cb71f
commit 7f591cb2c2
3 changed files with 3 additions and 3 deletions

View File

@ -208,7 +208,7 @@ void RasterTile::drawLines(QPainter *painter,
if (!style.img().isNull()) {
if (poly.flags & MapData::Poly::Invert)
BitmapLine::drawr(painter, poly.points, style.img());
BitmapLine::drawR(painter, poly.points, style.img());
else
BitmapLine::draw(painter, poly.points, style.img());
} else if (style.foreground() != Qt::NoPen) {

View File

@ -53,7 +53,7 @@ void BitmapLine::draw(QPainter *painter, const QPolygonF &line,
}
}
void BitmapLine::drawr(QPainter *painter, const QPolygonF &line,
void BitmapLine::drawR(QPainter *painter, const QPolygonF &line,
const QImage &img)
{
int offset = 0;

View File

@ -11,7 +11,7 @@ class QPainterPath;
namespace BitmapLine
{
void draw(QPainter *painter, const QPolygonF &line, const QImage &img);
void drawr(QPainter *painter, const QPolygonF &line, const QImage &img);
void drawR(QPainter *painter, const QPolygonF &line, const QImage &img);
void draw(QPainter *painter, const QVector<QPolygonF> &lines,
const QImage &img);
void draw(QPainter *painter, const QPainterPath &line, const QImage &img);