mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Fixed rendering glitch
This commit is contained in:
parent
6bd83780cd
commit
43271d9ff8
@ -500,8 +500,8 @@ MatrixD RasterTile::elevation(int extend) const
|
|||||||
void RasterTile::drawHillShading(QPainter *painter) const
|
void RasterTile::drawHillShading(QPainter *painter) const
|
||||||
{
|
{
|
||||||
if (_hillShading && _zoom >= 18 && _zoom <= 24) {
|
if (_hillShading && _zoom >= 18 && _zoom <= 24) {
|
||||||
MatrixD dem(Filter::blur(elevation(BLUR_RADIUS), BLUR_RADIUS));
|
MatrixD dem(Filter::blur(elevation(BLUR_RADIUS + 1), BLUR_RADIUS));
|
||||||
QImage img(HillShading::render(dem, BLUR_RADIUS));
|
QImage img(HillShading::render(dem, BLUR_RADIUS + 1));
|
||||||
painter->drawImage(_rect.x(), _rect.y(), img);
|
painter->drawImage(_rect.x(), _rect.y(), img);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -442,8 +442,9 @@ void RasterTile::drawPaths(QPainter *painter, const QList<MapData::Path> &paths,
|
|||||||
painter->drawEllipse(ll2xy(point->coordinates), radius, radius);
|
painter->drawEllipse(ll2xy(point->coordinates), radius, radius);
|
||||||
} else {
|
} else {
|
||||||
if (_hillShading) {
|
if (_hillShading) {
|
||||||
MatrixD dem(Filter::blur(elevation(BLUR_RADIUS), BLUR_RADIUS));
|
MatrixD dem(Filter::blur(elevation(BLUR_RADIUS + 1),
|
||||||
QImage img(HillShading::render(dem, BLUR_RADIUS));
|
BLUR_RADIUS));
|
||||||
|
QImage img(HillShading::render(dem, BLUR_RADIUS + 1));
|
||||||
painter->drawImage(_rect.x(), _rect.y(), img);
|
painter->drawImage(_rect.x(), _rect.y(), img);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user