Example #1
0
File: Kernel.cs Project: ke2083/KOS
 protected override void BeforeRun()
 {
     var vga = new VGAScreen();
     vga.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);
     screen = new Screen(vga);
     canvas = new Canvas(screen);
     canvas.Clear();
     mouse.Initialize();
     var ml = canvas.CreateLayer();
     mouseLayer = canvas.GetLayer(ml);
     //mouseLayer.DrawLine(0, 0, 200, 200, Colour.LimeGreen);
     //canvas.Redraw();
 }
Example #2
0
File: Canvas.cs Project: ke2083/KOS
 /// <summary>
 /// Initializes a new instance of the Canvas class.
 /// </summary>
 public Canvas(Screen screen)
 {
     this.screen = screen;
 }