aboutsummaryrefslogtreecommitdiff
path: root/src/aocharmovie.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2020-03-08 17:40:52 +0300
committerCrystalwarrior <varsash@gmail.com>2020-03-08 17:40:52 +0300
commit9b8f60061aebae849f5325189d5baf36db0c8c99 (patch)
treedcb6a93d61f246ca7f8eb3c1f06113b8f8cbc640 /src/aocharmovie.cpp
parente4b90d36a90e4601df23b5634aa5ad123d8f6424 (diff)
The Crispy:tm: update
Make it so BG's and Characters will not be blurred when rescaled TODO: Make Qmovies ditch anti-aliasing during scaling as well Only apply crispy scaling if the size is 2x of the previous size or something
Diffstat (limited to 'src/aocharmovie.cpp')
-rw-r--r--src/aocharmovie.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/aocharmovie.cpp b/src/aocharmovie.cpp
index 0ce5c868..6cdcab2c 100644
--- a/src/aocharmovie.cpp
+++ b/src/aocharmovie.cpp
@@ -240,7 +240,9 @@ QPixmap AOCharMovie::get_pixmap(QImage image)
else
f_pixmap = QPixmap::fromImage(image);
// auto aspect_ratio = Qt::KeepAspectRatio;
- auto transform_mode = Qt::SmoothTransformation;
+ auto transform_mode = Qt::FastTransformation;
+// if ()
+// transform_mode = Qt::SmoothTransformation;
f_pixmap = f_pixmap.scaledToHeight(f_h, transform_mode);
this->resize(f_pixmap.size());