public void SetMode(int width, int height) { if (width == 320 && height == 200) { VGA.SetMode320x200x8(); this.Width = width; this.Height = height; } //Initlize the new Buffer. this.Buffer = new Graphics.Frame(this.Width, this.Height); }
public static void Initialize() { screen = new Cosmos.Hardware.VGAScreen(); screen.SetMode320x200x8(); screen.SetPaletteEntry(0, 0, 0, 0); // black screen.SetPaletteEntry(1, 255, 255, 255); // white screen.SetPaletteEntry(2, 255, 0, 0); // red screen.SetPaletteEntry(3, 0, 255, 0); // green screen.SetPaletteEntry(4, 0, 0, 255); // blue screen.SetPaletteEntry(5, 255, 0, 255); // purple mouse = new Drawing.Mouse((uint)screen.PixelWidth / (uint)2, (uint)screen.PixelHeight / (uint)2); Font.SetupFont(); Update(); }
public static void Mode() { Vga.SetMode320x200x8(); }