From 5caae72682b5fced73eef31640634e0e8760c919 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 12 Dec 2016 13:43:56 -0600 Subject: [PATCH] NullVideo - make Instance static --- BizHawk.Emulation.Common/Base Implementations/NullVideo.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Common/Base Implementations/NullVideo.cs b/BizHawk.Emulation.Common/Base Implementations/NullVideo.cs index fda836f129..cc5d3c8fc3 100644 --- a/BizHawk.Emulation.Common/Base Implementations/NullVideo.cs +++ b/BizHawk.Emulation.Common/Base Implementations/NullVideo.cs @@ -16,9 +16,11 @@ public int BackgroundColor { get { return 0; } } + private static NullVideo _nullVideo = new NullVideo(); + public static NullVideo Instance { - get { return new NullVideo(); } + get { return _nullVideo; } } } }