Example #1
0
        protected override void Run()
        {
            switch (MouseManager.MouseState)
            {
            case MouseState.Left:
                Pressed = true;
                break;

            case MouseState.None:
                Pressed = false;
                break;
            }

            vMWareSVGAII.DoubleBuffer_Clear((uint)Color.Black.ToArgb());

            vMWareSVGAII.DoubleBuffer_DrawImage(bootBitmap, screenWidth / 2 - bootBitmap.Width / 2, screenHeight / 2 - bootBitmap.Height / 2);


            //vMWareSVGAII.DoubleBuffer_DrawImage(bitmap,0,0); Wallpaper

            foreach (App app in apps)
            {
                app.Update();
            }

            dock.Update();

            DrawCursor(vMWareSVGAII, MouseManager.X, MouseManager.Y);

            vMWareSVGAII.DoubleBuffer_Update();
        }
Example #2
0
        protected override void Run()
        {
            switch (MouseManager.MouseState)
            {
            case MouseState.Left:
                Pressed = true;
                break;

            case MouseState.None:
                Pressed = false;
                break;
            }

            vMWareSVGAII.DoubleBuffer_Clear((uint)Color.Black.ToArgb());
            vMWareSVGAII.DoubleBuffer_SetVRAM(bitmap.rawData, (int)vMWareSVGAII.FrameSize);
            logView.text = $"Time: {DateTime.Now}\nInstall RAM: {CPU.GetAmountOfRAM()}MB, Video RAM: {vMWareSVGAII.Video_Memory.Size}Bytes";
            foreach (App app in apps)
            {
                app.Update();
            }

            dock.Update();

            DrawCursor(vMWareSVGAII, MouseManager.X, MouseManager.Y);

            vMWareSVGAII.DoubleBuffer_Update();
        }