diff --git a/MPlayerX/DisplayLayer.m b/MPlayerX/DisplayLayer.m index 99b92d8..dc58d48 100644 --- a/MPlayerX/DisplayLayer.m +++ b/MPlayerX/DisplayLayer.m @@ -215,9 +215,9 @@ -(void) reshape CGFloat sAspect = [self aspectRatio]; if (((sAspect * rc.size.height) > rc.size.width) == fillScreen) { - rc.size.width = rc.size.height * sAspect; + rc.size.width = round(rc.size.height * sAspect); } else { - rc.size.height = rc.size.width / sAspect; + rc.size.height = round(rc.size.width / sAspect); } if (scaleEnabled) { @@ -225,7 +225,7 @@ -(void) reshape rc.size.height *= renderRatio.size.height; } - self.bounds = rc; + self.bounds = CGRectIntegral(rc); flagAspectRatioChanged = NO; flagFillScrnChanged = NO;