mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
默认使用旧版截图器
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Fischless.GameCapture.BitBlt;
|
||||
|
||||
public class BitBltCapture : IGameCapture
|
||||
{
|
||||
public CaptureModes Mode => CaptureModes.BitBlt;
|
||||
public CaptureModes Mode => CaptureModes.BitBltNew;
|
||||
public bool IsCapturing { get; private set; }
|
||||
private readonly Stopwatch _sizeCheckTimer = new();
|
||||
private readonly ReaderWriterLockSlim _lockSlim = new();
|
||||
|
||||
@@ -7,7 +7,7 @@ public class BitBltOldCapture : IGameCapture
|
||||
{
|
||||
private nint _hWnd;
|
||||
|
||||
public CaptureModes Mode => CaptureModes.BitBltOld;
|
||||
public CaptureModes Mode => CaptureModes.BitBlt;
|
||||
|
||||
public static object LockObject { get; } = new();
|
||||
|
||||
|
||||
@@ -6,4 +6,4 @@ public static class CaptureModeExtensions
|
||||
{
|
||||
return (CaptureModes)Enum.Parse(typeof(CaptureModes), modeName);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,12 +4,12 @@ namespace Fischless.GameCapture;
|
||||
|
||||
public enum CaptureModes
|
||||
{
|
||||
[Description("BitBlt(稳定)")]
|
||||
BitBltOld,
|
||||
|
||||
[Description("BitBlt(极速)")]
|
||||
[Description("BitBlt(稳定)")]
|
||||
BitBlt,
|
||||
|
||||
[Description("BitBlt(极速)")]
|
||||
BitBltNew,
|
||||
|
||||
[Description("WindowsGraphicsCapture")]
|
||||
WindowsGraphicsCapture,
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ public class GameCaptureFactory
|
||||
{
|
||||
return mode switch
|
||||
{
|
||||
CaptureModes.BitBlt => new BitBlt.BitBltCapture(),
|
||||
CaptureModes.BitBltOld => new BitBlt.BitBltOldCapture(),
|
||||
CaptureModes.BitBltNew => new BitBlt.BitBltCapture(),
|
||||
CaptureModes.BitBlt => new BitBlt.BitBltOldCapture(),
|
||||
CaptureModes.WindowsGraphicsCapture => new Graphics.GraphicsCapture(),
|
||||
CaptureModes.DwmGetDxSharedSurface => new DwmSharedSurface.SharedSurfaceCapture(),
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(mode), mode, null),
|
||||
|
||||
Reference in New Issue
Block a user