diff options
author | Nomis101 <[email protected]> | 2019-11-01 21:34:54 +0100 |
---|---|---|
committer | Scott <[email protected]> | 2019-11-04 22:41:20 +0000 |
commit | 20fe4b6ebd371b96af85090b3a23c7a14b405bdf (patch) | |
tree | 57dbfd4f586427c77d71948b7520f5c9215d2543 /macosx/HBPreviewView.m | |
parent | da9aa8ba4214c711efaaac54c0d4fec2103cb9a8 (diff) |
Gardening: Clean up trailing whitespace
Remove trailing whitespace in "*.c", "*.m", "*.h" and "*.cpp" files.
Diffstat (limited to 'macosx/HBPreviewView.m')
-rw-r--r-- | macosx/HBPreviewView.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/macosx/HBPreviewView.m b/macosx/HBPreviewView.m index 753fd09f4..4e7d81ae1 100644 --- a/macosx/HBPreviewView.m +++ b/macosx/HBPreviewView.m @@ -130,7 +130,7 @@ NSSize imageSize = NSMakeSize(CGImageGetWidth(self.image), CGImageGetHeight(self.image)); CGFloat backingScaleFactor = self.window.backingScaleFactor; CGFloat borderSize = self.showBorder ? BORDER_SIZE : 0; - + NSSize imageScaledSize = [self imageScaledSize:imageSize toFit:self.frame.size borderSize:borderSize scaleFactor:self.window.backingScaleFactor]; return (imageScaledSize.width - borderSize * 2) / imageSize.width * backingScaleFactor; @@ -175,16 +175,16 @@ // with double pixel count, but we don't // want to double the size of the video NSSize scaledSource = NSMakeSize(source.width / scaleFactor, source.height / scaleFactor); - + scaledSource.width += borderSize * 2; scaledSource.height += borderSize * 2; - + if (self.fitToView == YES || scaledSource.width > destination.width || scaledSource.height > destination.height) { // If the image is larger then the view or if we are in Fit to View mode, scale the image scaledSource = [self scaledSize:source toFit:destination]; } - + return scaledSource; } @@ -197,12 +197,12 @@ { CGFloat borderSize = self.showBorder ? BORDER_SIZE : 0; NSSize frameSize = self.frame.size; - + NSSize imageScaledSize = [self imageScaledSize:imageSize toFit:frameSize borderSize:borderSize scaleFactor:self.window.backingScaleFactor]; - + [CATransaction begin]; CATransaction.disableActions = YES; @@ -216,7 +216,7 @@ self.backLayer.frame = alignedRect; self.pictureLayer.frame = NSInsetRect(alignedRect, borderSize, borderSize); - + [CATransaction commit]; } } |