mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-23 07:14:22 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
a24d55025f | |||
04ddcecb70 | |||
dc9a600a6e | |||
c365de130b |
@ -1,4 +1,4 @@
|
||||
version: 7.14.{build}
|
||||
version: 7.15.{build}
|
||||
configuration: Release
|
||||
platform: Any CPU
|
||||
environment:
|
||||
|
@ -3,7 +3,7 @@ unix:!macx {
|
||||
} else {
|
||||
TARGET = GPXSee
|
||||
}
|
||||
VERSION = 7.14
|
||||
VERSION = 7.15
|
||||
|
||||
QT += core \
|
||||
gui \
|
||||
|
@ -7,7 +7,7 @@
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "7.14"
|
||||
!define VERSION "7.15"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}.exe"
|
||||
|
@ -7,7 +7,7 @@
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "7.14"
|
||||
!define VERSION "7.15"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||
|
@ -152,7 +152,7 @@
|
||||
#define ENABLE_HTTP2_SETTING "enableHTTP2"
|
||||
#define ENABLE_HTTP2_DEFAULT true
|
||||
#define PIXMAP_CACHE_SETTING "pixmapCache"
|
||||
#define PIXMAP_CACHE_DEFAULT 64 /* MB */
|
||||
#define PIXMAP_CACHE_DEFAULT 256 /* MB */
|
||||
#define CONNECTION_TIMEOUT_SETTING "connectionTimeout"
|
||||
#define CONNECTION_TIMEOUT_DEFAULT 30 /* s */
|
||||
#define HIRES_PRINT_SETTING "hiresPrint"
|
||||
|
@ -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<IMG::Poly> &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<qreal, int> map;
|
||||
|
@ -124,7 +124,8 @@ void OnlineMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
|
||||
Tile &t = tiles[i];
|
||||
QPointF tp = _zoom ? QPointF(tl.x() + (t.xy().x() - tile.x())
|
||||
* tileSize(), tl.y() + ((_invertY ? (1<<_zoom) - t.xy().y() - 1 :
|
||||
t.xy().y()) - tile.y()) * tileSize()) : QPointF(-128, -128);
|
||||
t.xy().y()) - tile.y()) * tileSize())
|
||||
: QPointF(-_tileSize/2, -_tileSize/2);
|
||||
|
||||
if (!t.pixmap().isNull()) {
|
||||
#ifdef ENABLE_HIDPI
|
||||
|
Reference in New Issue
Block a user