From 28061e98dc2d168aecf96fda78cb9a10830407c9 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 16 Oct 2017 10:35:33 +0300 Subject: [PATCH] Qt4: Use pixel-perfect tile scaling SmoothTransformation (bilinear filtering) causes artifacts at tile edges, and the blurry tiles look even worse. --- win/Qt4/qt4glyph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/Qt4/qt4glyph.cpp b/win/Qt4/qt4glyph.cpp index 3ba56be6f..942f3a1ab 100644 --- a/win/Qt4/qt4glyph.cpp +++ b/win/Qt4/qt4glyph.cpp @@ -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();