Skip to content

Commit

Permalink
[CGS] VmWare Support: Fix Error
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte authored Sep 14, 2017
1 parent 77e260d commit 1f693e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Demos/CosmosGraphicSubsystem/Kernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ protected override void BeforeRun()
{
Console.WriteLine("Cosmos booted successfully. Let's go in Graphic Mode");

var xVideoDriver = HAL.PCI.GetDevice(0x15AD, 0x0405);

var SVGAII = xVideoDriver.DeviceExists;
/* Get on istance of the Canvas that is all the Screen */
canvas = FullScreenCanvas.GetFullScreenCanvas();
if(SVGAII) canvas = FullScreenCanvas.GetFullScreenCanvas(FullScreenCanvas.VideoDriver);

/* Clear the Screen with the color 'Blue' */
canvas.Clear(Color.Blue);
Expand Down

0 comments on commit 1f693e0

Please sign in to comment.