From 7f591cb2c2b34ff3da371b12d3892b2a7fee2ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 10 May 2025 20:15:51 +0200 Subject: [PATCH] Refactoring --- src/map/IMG/rastertile.cpp | 2 +- src/map/bitmapline.cpp | 2 +- src/map/bitmapline.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/rastertile.cpp b/src/map/IMG/rastertile.cpp index 00f5882d..527cbfe2 100644 --- a/src/map/IMG/rastertile.cpp +++ b/src/map/IMG/rastertile.cpp @@ -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) { diff --git a/src/map/bitmapline.cpp b/src/map/bitmapline.cpp index 4afb8360..118364db 100644 --- a/src/map/bitmapline.cpp +++ b/src/map/bitmapline.cpp @@ -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; diff --git a/src/map/bitmapline.h b/src/map/bitmapline.h index 4e95df64..520117a2 100644 --- a/src/map/bitmapline.h +++ b/src/map/bitmapline.h @@ -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 &lines, const QImage &img); void draw(QPainter *painter, const QPainterPath &line, const QImage &img);