Skip to content

Commit

Permalink
Merge pull request #21 from upsuper/patch-1
Browse files Browse the repository at this point in the history
fix blurry image
  • Loading branch information
niltsh committed Dec 23, 2013
2 parents f42c52a + 7a48c82 commit ae59c77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MPlayerX/DisplayLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,17 @@ -(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) {
rc.size.width *= renderRatio.size.width;
rc.size.height *= renderRatio.size.height;
}

self.bounds = rc;
self.bounds = CGRectIntegral(rc);

flagAspectRatioChanged = NO;
flagFillScrnChanged = NO;
Expand Down

0 comments on commit ae59c77

Please sign in to comment.