some refactoring of NullVideo/NullEmulator - maybe this is better code, maybe not

This commit is contained in:
adelikat 2017-05-05 09:51:00 -05:00
parent 8e4ca6ac8e
commit 5eec274b5d
2 changed files with 14 additions and 10 deletions

View File

@ -100,15 +100,15 @@ namespace BizHawk.Emulation.Common
return _frameBuffer;
}
public int VirtualWidth => 256;
public int VirtualWidth => NullVideo.DefaultWidth;
public int VirtualHeight => 192;
public int VirtualHeight => NullVideo.DefaultHeight;
public int BufferWidth => 256;
public int BufferWidth => NullVideo.DefaultWidth;
public int BufferHeight => 192;
public int BufferHeight => NullVideo.DefaultHeight;
public int BackgroundColor => 0;
public int BackgroundColor => NullVideo.DefaultBackgroundColor;
#endregion

View File

@ -14,14 +14,18 @@
public static NullVideo Instance { get; } = new NullVideo();
public int VirtualWidth => 256;
public static int DefaultWidth { get; } = 256;
public static int DefaultHeight { get; } = 192;
public static int DefaultBackgroundColor { get; } = 0;
public int VirtualHeight => 192;
public int VirtualWidth => DefaultWidth;
public int BufferWidth => 256;
public int VirtualHeight => DefaultHeight;
public int BufferHeight => 192;
public int BufferWidth => DefaultWidth;
public int BackgroundColor => 0;
public int BufferHeight => DefaultHeight;
public int BackgroundColor => DefaultBackgroundColor;
}
}