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:33 +03:00
parent ab04d12ccb
commit 28061e98dc

View File

@@ -130,7 +130,7 @@ void NetHackQtGlyphs::setSize(int w, int h)
w*img.width()/tilefile_tile_W,
h*img.height()/tilefile_tile_H,
Qt::IgnoreAspectRatio,
Qt::SmoothTransformation
Qt::FastTransformation
);
pm.convertFromImage(scaled,Qt::ThresholdDither|Qt::PreferDither);
QApplication::restoreOverrideCursor();