Qt4: Use pixel-perfect tile scaling

SmoothTransformation (bilinear filtering) causes artifacts
at tile edges, and the blurry tiles look even worse.
This commit is contained in:
Pasi Kallinen
2017-10-16 10:35:36 +03:00
parent ab04d12ccb
commit 28061e98dc
+1 -1
View File
@@ -130,7 +130,7 @@ void NetHackQtGlyphs::setSize(int w, int h)
w*img.width()/tilefile_tile_W, w*img.width()/tilefile_tile_W,
h*img.height()/tilefile_tile_H, h*img.height()/tilefile_tile_H,
Qt::IgnoreAspectRatio, Qt::IgnoreAspectRatio,
Qt::SmoothTransformation Qt::FastTransformation
); );
pm.convertFromImage(scaled,Qt::ThresholdDither|Qt::PreferDither); pm.convertFromImage(scaled,Qt::ThresholdDither|Qt::PreferDither);
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();