From a24d55025ff95975b70f7ea38c0a5a3c766ce584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 5 Oct 2019 12:41:42 +0200 Subject: [PATCH] Text layout tweaking & optimization --- src/map/imgmap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/imgmap.cpp b/src/map/imgmap.cpp index 801a957e..70940c9c 100644 --- a/src/map/imgmap.cpp +++ b/src/map/imgmap.cpp @@ -16,8 +16,8 @@ #include "imgmap.h" -#define TILE_SIZE 256 -#define TEXT_EXTENT 256 +#define TILE_SIZE 384 +#define TEXT_EXTENT 160 #define AREA(rect) \ (rect.size().width() * rect.size().height()) @@ -419,7 +419,7 @@ void IMGMap::processShields(QList &lines, const QRect &tileRect, = shields.constBegin(); it != shields.constEnd(); ++it) { const QPolygonF &p = it.value(); QRectF rect(p.boundingRect() & tileRect); - if (qSqrt(AREA(rect)) < 32) + if (qSqrt(AREA(rect)) < TILE_SIZE/8) continue; QMap map;