From 20fe4b6ebd371b96af85090b3a23c7a14b405bdf Mon Sep 17 00:00:00 2001 From: Nomis101 Date: Fri, 1 Nov 2019 21:34:54 +0100 Subject: Gardening: Clean up trailing whitespace Remove trailing whitespace in "*.c", "*.m", "*.h" and "*.cpp" files. --- macosx/HBPreviewView.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'macosx/HBPreviewView.m') 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]; } } -- cgit v1.2.3