Skip to content

Commit

Permalink
By EtlamGit: Use SmoothPixmapTransform for rendering if zoom out belo…
Browse files Browse the repository at this point in the history
…w factor 1.0
  • Loading branch information
cre4ture committed Nov 15, 2019
1 parent 86aed53 commit 312b081
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mapview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ void MapView::drawChunk(int x, int z) {
QRectF targetRect(centerx, centery, chunksize, chunksize);

QPainter canvas(&imageChunks);
if (this->zoom < 1.0)
canvas.setRenderHint(QPainter::SmoothPixmapTransform);
canvas.drawImage(targetRect, srcImage);
}

Expand Down

0 comments on commit 312b081

Please sign in to comment.