Skip to content

Commit

Permalink
🔓Graphics drivers are now public!
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymekk44 committed Sep 25, 2024
1 parent 2561585 commit 567d6b0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/Cosmos.System2/Graphics/FullScreenCanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private enum VideoDriver
VGADriver
}

static Canvas videoDriver = null;
public static Canvas videoDriver = null;
static readonly PCIDevice svgaIIDevice = PCI.GetDevice(VendorID.VMWare, DeviceID.SVGAIIAdapter);

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions source/Cosmos.System2/Graphics/SVGAIICanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public class SVGAIICanvas : Canvas
internal Debugger debugger = new("SVGAIIScreen");
static readonly Mode defaultMode = new(1024, 768, ColorDepth.ColorDepth32);

private Mode mode;
private readonly VMWareSVGAII driver;
public Mode mode;
public readonly VMWareSVGAII driver;

/// <summary>
/// Initializes a new instance of the <see cref="SVGAIICanvas"/> class.
Expand Down
4 changes: 2 additions & 2 deletions source/Cosmos.System2/Graphics/VBECanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ namespace Cosmos.System.Graphics
public class VBECanvas : Canvas
{
static readonly Mode defaultMode = new(1024, 768, ColorDepth.ColorDepth32);
readonly VBEDriver driver;
Mode mode;
public readonly VBEDriver driver;
public Mode mode;

/// <summary>
/// Initializes a new instance of the <see cref="VBECanvas"/> class.
Expand Down
2 changes: 1 addition & 1 deletion source/Cosmos.System2/Graphics/VGACanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Cosmos.System.Graphics
public class VGACanvas : Canvas
{
bool enabled;
readonly VGADriver driver;
public readonly VGADriver driver;

/// <summary>
/// Available VGA supported video modes.
Expand Down

0 comments on commit 567d6b0

Please sign in to comment.