From ee683fd6d10e040250ae6c9053ac52688f0b90d8 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Tue, 20 Nov 2018 11:34:57 +1100 Subject: [PATCH] minor autoscale tweak --- ui/viewerwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/viewerwidget.cpp b/ui/viewerwidget.cpp index 8a652d5ca..b0ef15d5e 100644 --- a/ui/viewerwidget.cpp +++ b/ui/viewerwidget.cpp @@ -438,7 +438,7 @@ GLuint ViewerWidget::compose_sequence(QVector& nests, bool render_audio) coords.textureTopLeftY = coords.textureTopRightY = coords.textureTopLeftX = coords.textureBottomLeftX = 0; coords.textureBottomLeftY = coords.textureBottomRightY = coords.textureTopRightX = coords.textureBottomRightX = 1.0; - if (c->autoscale && (video_width != s->width || video_height != s->height)) { + if (c->autoscale && (video_width != s->width && video_height != s->height)) { double width_multiplier = (double) s->width / (double) video_width; double height_multiplier = (double) s->height / (double) video_height; double scale_multiplier = qMin(width_multiplier, height_multiplier);