fixed an issue related to flipping and bigger viewport

This commit is contained in:
OmniTroid 2017-03-16 02:43:09 +01:00
parent 3b97f88db4
commit 0c193741dd

View File

@ -157,7 +157,11 @@ void AOCharMovie::combo_resize(int w, int h)
void AOCharMovie::frame_change(int n_frame) void AOCharMovie::frame_change(int n_frame)
{ {
if (m_flipped && flipped_movie.size() > 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) if (m_movie->frameCount() - 1 == n_frame && play_once)
{ {