mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(video): Fix square form of a video
Use right sign to compare NON-equal double numbers
This commit is contained in:
parent
8db61f96ec
commit
8de8c14a76
|
@ -150,7 +150,7 @@ void VideoSurface::onNewFrameAvailable(const std::shared_ptr<VideoFrame>& newFra
|
|||
|
||||
float newRatio = getSizeRatio(newSize);
|
||||
|
||||
if (qAbs(newRatio - ratio) < 1E-3 && isVisible()) {
|
||||
if (qAbs(newRatio - ratio) > 1E-3 && isVisible()) {
|
||||
ratio = newRatio;
|
||||
recalulateBounds();
|
||||
emit ratioChanged();
|
||||
|
|
Loading…
Reference in New Issue
Block a user