diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64VideoProvider.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64VideoProvider.cs index be3da2a8af..7a0b9ca708 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64VideoProvider.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64VideoProvider.cs @@ -19,7 +19,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64 int width = 0; int height = 0; api.GetScreenDimensions(ref width, ref height); - SetBufferSize(width, height); + + SetBufferSize( + width > videosettings.Width ? width : videosettings.Width, + height > videosettings.Height ? height : videosettings.Height + ); core.FrameFinished += DoVideoFrame; } @@ -57,6 +61,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64 /// New height in pixels private void SetBufferSize(int width, int height) { + if (width == 0) + { + int zzz = 0; + } + BufferHeight = height; BufferWidth = width; frameBuffer = new int[width * height];