Пример #1
0
 protected override void BeforeRun()
 {
     VGADriverII.Initialize(VGAMode.Pixel320x200DB);
     draw.FromByteArray(System.Graphics.Images.BootScreen);
     VGAGraphics.DrawImage(0, 0, draw);
     VGAGraphics.Display();
     draw.FromByteArray(System.Graphics.Images.Cursor);
 }
Пример #2
0
 public static void Run()
 {
     VGAGraphics.Clear(VGAColor.Black);
     //draw current window (windows are always fullscreen for now)
     if (!(windows.Count == 0))
     {
         windows[RunningIndex].Run();
     }
     //draw mouse
     VGAGraphics.DrawImage((int)MouseManager.X, (int)MouseManager.Y, VGAColor.Magenta, ImgCursor);
     VGADriverII.Display();
 }
Пример #3
0
 public static void Run()
 {
     VGAGraphics.Clear(VGAColor.Black);
     foreach (var window in windows)
     {
         window.Draw();
     }
     if (windows.Count != 0)
     {
         windows[RunningIndex].Run();
     }
     //draw mouse
     VGAGraphics.DrawImage((int)MouseManager.X, (int)MouseManager.Y, VGAColor.Magenta, ImgCursor);
     VGADriverII.Display();
 }
Пример #4
0
 protected override void Run()
 {
     VGADriverII.Clear(206);
     VGAGraphics.DrawImage((int)Sys.MouseManager.X, (int)Sys.MouseManager.Y, draw);
     VGADriverII.Display();
 }