mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 05:18:38 +00:00
Return to text mode fixed for VMWare
This commit is contained in:
parent
9da7709573
commit
2d21791c66
3 changed files with 9 additions and 4 deletions
|
|
@ -72,18 +72,18 @@ namespace Cosmos_Graphic_Subsytem
|
|||
* canvas.DrawString(pen, "Please press any key to continue the Demo...");
|
||||
*/
|
||||
Console.ReadKey();
|
||||
/*
|
||||
|
||||
// Throws a NotImplementedException in VMWare,
|
||||
// due to being unable to escape from the clutches of the SVGA II driver...
|
||||
//
|
||||
// Probably best to leave this commented out until it can work in VMWare as well
|
||||
|
||||
canvas.Clear();
|
||||
canvas.Disable();
|
||||
Console.Clear();
|
||||
Console.WriteLine("If it worked, you've successfully returned back to standard VGA Text Mode!");
|
||||
Console.WriteLine("Let's try returning back to CGS mode... Press any key!");
|
||||
Console.ReadKey(true);
|
||||
*/
|
||||
|
||||
|
||||
/* Let's try to change mode...*/
|
||||
canvas.Mode = new Mode(1024, 768, ColorDepth.ColorDepth32);
|
||||
|
|
|
|||
|
|
@ -333,6 +333,11 @@ namespace Cosmos.HAL.Drivers.PCI.Video
|
|||
WaitForFifo();
|
||||
}
|
||||
|
||||
public void Disable()
|
||||
{
|
||||
WriteRegister(Register.Enable, 0);
|
||||
}
|
||||
|
||||
public void SetCursor(bool visible, uint x, uint y)
|
||||
{
|
||||
WriteRegister(Register.CursorID, 1);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Cosmos.System.Graphics
|
|||
{
|
||||
public override void Disable()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
xSVGAIIDriver.Disable();
|
||||
}
|
||||
|
||||
public VMWareSVGAII xSVGAIIDriver;
|
||||
|
|
|
|||
Loading…
Reference in a new issue