diff options
| author | Crystalwarrior <varsash@gmail.com> | 2020-03-12 00:47:39 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2020-03-12 00:47:39 +0300 |
| commit | ce3269cc36485e44a85778b0d93b6bfc26f95eb1 (patch) | |
| tree | df9de9d5ec10d753824722d8a54b405b7b92a964 | |
| parent | 9b8f60061aebae849f5325189d5baf36db0c8c99 (diff) | |
Only use anti-aliasing when sprites are being downscaled, otherwise preserve crispyness:tm:
| -rw-r--r-- | src/aocharmovie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aocharmovie.cpp b/src/aocharmovie.cpp index 6cdcab2c..7bbdc1bc 100644 --- a/src/aocharmovie.cpp +++ b/src/aocharmovie.cpp @@ -241,8 +241,8 @@ QPixmap AOCharMovie::get_pixmap(QImage image) f_pixmap = QPixmap::fromImage(image); // auto aspect_ratio = Qt::KeepAspectRatio; auto transform_mode = Qt::FastTransformation; -// if () -// transform_mode = Qt::SmoothTransformation; + if (f_pixmap.height() > f_h) //We are downscaling, use anti-aliasing. + transform_mode = Qt::SmoothTransformation; f_pixmap = f_pixmap.scaledToHeight(f_h, transform_mode); this->resize(f_pixmap.size()); |
