aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmniTroid <davidskoland@gmail.com>2017-03-16 02:43:09 +0100
committerOmniTroid <davidskoland@gmail.com>2017-03-16 02:43:09 +0100
commit0c193741dd7d9349bf8052101245ee20dd695570 (patch)
treea3ddb7ceb741d666b8e1dd3942b553d7bb1dca87
parent3b97f88db4b2e976dbca0f53c7620bc3b819bfcc (diff)
fixed an issue related to flipping and bigger viewport
-rw-r--r--aocharmovie.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/aocharmovie.cpp b/aocharmovie.cpp
index d2d704f3..71985237 100644
--- a/aocharmovie.cpp
+++ b/aocharmovie.cpp
@@ -157,7 +157,11 @@ void AOCharMovie::combo_resize(int w, int h)
void AOCharMovie::frame_change(int n_frame)
{
if (m_flipped && flipped_movie.size() > n_frame)
- this->setPixmap(QPixmap::fromImage(flipped_movie.at(n_frame)));
+ {
+ QPixmap f_pixmap = QPixmap::fromImage(flipped_movie.at(n_frame));
+
+ this->setPixmap(f_pixmap.scaled(this->width(), this->height()));
+ }
if (m_movie->frameCount() - 1 == n_frame && play_once)
{