mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-20 09:40:49 +01:00
Compare commits
2 Commits
aea8402016
...
ae3d190e08
Author | SHA1 | Date | |
---|---|---|---|
ae3d190e08 | |||
a5916cad90 |
@ -329,13 +329,3 @@ QList<SubDiv*> TREFile::subdivs(const RectC &rect, int bits,
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG
|
||||
QDebug IMG::operator<<(QDebug dbg, const TREFile::MapLevel &level)
|
||||
{
|
||||
dbg.nospace() << "MapLevel(" << level.level << "," << level.bits << ", "
|
||||
<< level.subdivs << ")";
|
||||
|
||||
return dbg.space();
|
||||
}
|
||||
#endif // QT_NO_DEBUG
|
||||
|
@ -42,8 +42,6 @@ private:
|
||||
};
|
||||
typedef RTree<SubDiv*, double, 2> SubDivTree;
|
||||
|
||||
friend QDebug operator<<(QDebug dbg, const MapLevel &level);
|
||||
|
||||
bool load(int idx);
|
||||
int level(int bits, const Range &baseMap);
|
||||
int readExtEntry(Handle &hdl, quint32 &polygons, quint32 &lines,
|
||||
@ -59,9 +57,6 @@ private:
|
||||
QMap<int, SubDivTree*> _subdivs;
|
||||
};
|
||||
|
||||
#ifndef QT_NO_DEBUG
|
||||
QDebug operator<<(QDebug dbg, const TREFile::MapLevel &level);
|
||||
#endif // QT_NO_DEBUG
|
||||
}
|
||||
|
||||
#endif // IMG_TREFILE_H
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <QPainter>
|
||||
#include "image.h"
|
||||
|
||||
|
||||
#define TILE_SIZE 256
|
||||
|
||||
void Image::draw(QPainter *painter, const QRectF &rect, Map::Flags flags)
|
||||
@ -17,9 +16,9 @@ void Image::draw(QPainter *painter, const QRectF &rect, Map::Flags flags)
|
||||
for (int j = sr.top()/TILE_SIZE; j <= sr.bottom()/TILE_SIZE; j++) {
|
||||
QPoint tl(i * TILE_SIZE, j * TILE_SIZE);
|
||||
QRect tile(tl, QSize(TILE_SIZE, TILE_SIZE));
|
||||
QPixmap pm(QPixmap::fromImage(_img.copy(tile)));
|
||||
pm.setDevicePixelRatio(ratio);
|
||||
painter->drawPixmap(tl/ratio, pm);
|
||||
QImage img(_img.copy(tile));
|
||||
img.setDevicePixelRatio(ratio);
|
||||
painter->drawImage(tl/ratio, img);
|
||||
}
|
||||
}
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user