Commit b61b0fad authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: video ratio

Change-Id: Ic6b5398431d0b5e13ccfff46b8a4f6fdcd4cf098
parent 3479b139
......@@ -172,7 +172,7 @@ bool frameDisplayed = false;
}
NSSize frameSize = self.frame.size;
float viewRatio = (rotation == 90 || rotation == -90 || rotation == 180 || rotation == -180) ?
float viewRatio = (rotation == 90 || rotation == -90) ?
frameSize.height/frameSize.width : frameSize.width/frameSize.height;
float frameRatio = ((float)size.width)/((float)size.height);
simd::float4x4 projectionMatrix;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment