We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f42c52a + 7a48c82 commit ae59c77Copy full SHA for ae59c77
MPlayerX/DisplayLayer.m
@@ -215,17 +215,17 @@ -(void) reshape
215
CGFloat sAspect = [self aspectRatio];
216
217
if (((sAspect * rc.size.height) > rc.size.width) == fillScreen) {
218
- rc.size.width = rc.size.height * sAspect;
+ rc.size.width = round(rc.size.height * sAspect);
219
} else {
220
- rc.size.height = rc.size.width / sAspect;
+ rc.size.height = round(rc.size.width / sAspect);
221
}
222
223
if (scaleEnabled) {
224
rc.size.width *= renderRatio.size.width;
225
rc.size.height *= renderRatio.size.height;
226
227
228
- self.bounds = rc;
+ self.bounds = CGRectIntegral(rc);
229
230
flagAspectRatioChanged = NO;
231
flagFillScrnChanged = NO;
0 commit comments