public VBEScreen(Mode mode) : base(mode) { if (!IsModeValid(mode)) throw new ArgumentOutOfRangeException($"Mode {mode} is not supported by VBE Driver"); VBEDriver = new VBEDriver((ushort)mode.Rows, (ushort)mode.Columns, (ushort)mode.ColorDepth); }
public VBEScreen() : base() { // We don't need to add a Control for defaultGraphicMode we assume it to be always a valid mode VBEDriver = new VBEDriver((ushort)defaultGraphicMode.Rows, (ushort)defaultGraphicMode.Columns, (ushort)defaultGraphicMode.ColorDepth); }