From 8946e29db99d7fcb761b1a2be619ce18afce40aa Mon Sep 17 00:00:00 2001 From: RandomEngy Date: Thu, 16 Nov 2017 23:02:28 -0800 Subject: Did a bit of refactoring and added an .editorconfig file to enforce the "spaces for tabs" setting. --- win/CS/HandBrakeWPF/Services/Scan/LibScan.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'win/CS/HandBrakeWPF/Services/Scan/LibScan.cs') diff --git a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs index 287732224..beceb9361 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs @@ -207,13 +207,7 @@ namespace HandBrakeWPF.Services.Scan PixelAspectY = job.PixelAspectY }; - int deinterlaceOn = 0; - if (job.DeinterlaceFilter != DeinterlaceFilter.Off) - { - deinterlaceOn = 1; - } - - bitmapImage = BitmapUtilities.ConvertToBitmapImage(this.instance.GetPreview(settings, preview, deinterlaceOn)); + bitmapImage = BitmapUtilities.ConvertToBitmapImage(this.instance.GetPreview(settings, preview, job.DeinterlaceFilter != DeinterlaceFilter.Off)); } catch (AccessViolationException e) { -- cgit v1.2.3