]> granicus.if.org Git - nethack/commitdiff
Qt4: Use pixel-perfect tile scaling
authorPasi Kallinen <paxed@alt.org>
Mon, 16 Oct 2017 07:35:33 +0000 (10:35 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 16 Oct 2017 07:35:36 +0000 (10:35 +0300)
SmoothTransformation (bilinear filtering) causes artifacts
at tile edges, and the blurry tiles look even worse.

win/Qt4/qt4glyph.cpp

index 3ba56be6f3ddc4fea914ca9c1717708b4b335c90..942f3a1ab5c341a6227131b94c95a040e302af5c 100644 (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();