From 956b71060e5dbbc9d045cc7d20973a5e3bf24c59 Mon Sep 17 00:00:00 2001 From: SuuperW Date: Mon, 24 Aug 2020 18:34:59 -0500 Subject: [PATCH] fix an error with new logic in commit 6b63db8 --- src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs b/src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs index 90c0deab61..83fd03272a 100644 --- a/src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs +++ b/src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs @@ -108,7 +108,8 @@ namespace BizHawk.Client.Common public bool MatchesSettings(RewindConfig settings) { - long size = 1L << (int)Math.Floor(Math.Log(settings.BufferSize, 2)); + long targetSize = settings.BufferSize * 1024 * 1024; + long size = 1L << (int)Math.Floor(Math.Log(targetSize, 2)); return Size == size && _useCompression == settings.UseCompression && _targetFrameLength == settings.TargetFrameLength;