From 955438d9bbab57c112c7b16d887e47256a1e5e31 Mon Sep 17 00:00:00 2001 From: Asnivor Date: Fri, 6 Sep 2024 15:48:01 +0100 Subject: [PATCH] [ChannelFHawk] Remove obsolute stuff --- .../Fairchild/ChannelF/ChannelF.IVideoProvider.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Fairchild/ChannelF/ChannelF.IVideoProvider.cs b/src/BizHawk.Emulation.Cores/Consoles/Fairchild/ChannelF/ChannelF.IVideoProvider.cs index adf29e2ce6..defa62abb2 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Fairchild/ChannelF/ChannelF.IVideoProvider.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Fairchild/ChannelF/ChannelF.IVideoProvider.cs @@ -108,8 +108,6 @@ namespace BizHawk.Emulation.Cores.Consoles.ChannelF private int HDisplayable => HBlankOn - HBlankOff; private int VDisplayable => VBlankOn - VBlankOff; - private double HPixelAspectModifier => Region == DisplayType.NTSC ? 1.75 : 1.95; // This is only here because the aspect ratio is off between regions. It could maybe be negated by trimming the number of scanlines on PAL?? - private int[] ClampBuffer(int[] buffer, int originalWidth, int originalHeight, int trimLeft, int trimTop, int trimRight, int trimBottom) { int newWidth = originalWidth - trimLeft - trimRight; @@ -129,17 +127,6 @@ namespace BizHawk.Emulation.Cores.Consoles.ChannelF return newBuffer; } - private static double GetHorizontalModifier(int bufferWidth, int bufferHeight, double targetAspectRatio) - { - // Calculate the current aspect ratio - double currentAspectRatio = (double)bufferWidth / bufferHeight; - - // Calculate the horizontal modifier needed to achieve the target aspect ratio - double horizontalModifier = targetAspectRatio / currentAspectRatio; - - return horizontalModifier; - } - private static double GetVerticalModifier(int bufferWidth, int bufferHeight, double targetAspectRatio) { // Calculate the current aspect ratio