mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Text layout tweaking & optimization
This commit is contained in:
parent
04ddcecb70
commit
a24d55025f
@ -16,8 +16,8 @@
|
|||||||
#include "imgmap.h"
|
#include "imgmap.h"
|
||||||
|
|
||||||
|
|
||||||
#define TILE_SIZE 256
|
#define TILE_SIZE 384
|
||||||
#define TEXT_EXTENT 256
|
#define TEXT_EXTENT 160
|
||||||
|
|
||||||
#define AREA(rect) \
|
#define AREA(rect) \
|
||||||
(rect.size().width() * rect.size().height())
|
(rect.size().width() * rect.size().height())
|
||||||
@ -419,7 +419,7 @@ void IMGMap::processShields(QList<IMG::Poly> &lines, const QRect &tileRect,
|
|||||||
= shields.constBegin(); it != shields.constEnd(); ++it) {
|
= shields.constBegin(); it != shields.constEnd(); ++it) {
|
||||||
const QPolygonF &p = it.value();
|
const QPolygonF &p = it.value();
|
||||||
QRectF rect(p.boundingRect() & tileRect);
|
QRectF rect(p.boundingRect() & tileRect);
|
||||||
if (qSqrt(AREA(rect)) < 32)
|
if (qSqrt(AREA(rect)) < TILE_SIZE/8)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
QMap<qreal, int> map;
|
QMap<qreal, int> map;
|
||||||
|
Loading…
Reference in New Issue
Block a user