Skip to content

Commit

Permalink
Update FullScreenCanvas.cs
Browse files Browse the repository at this point in the history
this is better
  • Loading branch information
zarlo authored Sep 14, 2017
1 parent bd658a5 commit 42ed509
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions source/Cosmos.System2/Graphics/FullScreenCanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,9 @@ public static Canvas GetFullScreenCanvas(Mode mode)
public static Canvas GetFullScreenCanvas()
{
Global.mDebugger.SendInternal($"GetFullScreenCanvas() with default mode");

/* Use SVGAII When Exists in PCI */
if(SVGAIIExists)
videoDevice = VideoDriver.VMWareSVGAIIDriver;

if (videoDevice == VideoDriver.VMWareSVGAIIDriver)
return MyVideoDriver = new SVGAIIScreen();
else if (videoDevice == VideoDriver.VBEDriver)
return MyVideoDriver = new VBEScreen();


/* We have already got a VideoDriver istance simple reset its mode to DefaultGraphicMode */
MyVideoDriver.Mode = MyVideoDriver.DefaultGraphicMode;
return MyVideoDriver;
return GetFullScreenCanvas(MyVideoDriver.DefaultGraphicMode);
}
}
}

0 comments on commit 42ed509

Please sign in to comment.