From 9f36cb50ef05b6c598046ae1abe8080f55b2a887 Mon Sep 17 00:00:00 2001 From: SzymekkYT <69077038+Szymekk44@users.noreply.github.com> Date: Wed, 25 Sep 2024 23:01:12 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8F=AAFully=20revert=20driver=20to=20*privat?= =?UTF-8?q?e*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Cosmos.System2/Graphics/FullScreenCanvas.cs | 2 +- source/Cosmos.System2/Graphics/SVGAIICanvas.cs | 2 +- source/Cosmos.System2/Graphics/VBECanvas.cs | 2 +- source/Cosmos.System2/Graphics/VGACanvas.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Cosmos.System2/Graphics/FullScreenCanvas.cs b/source/Cosmos.System2/Graphics/FullScreenCanvas.cs index 89d4c22dec..ca6d5fb417 100644 --- a/source/Cosmos.System2/Graphics/FullScreenCanvas.cs +++ b/source/Cosmos.System2/Graphics/FullScreenCanvas.cs @@ -35,7 +35,7 @@ private enum VideoDriver VGADriver } - public static Canvas videoDriver = null; + private static Canvas videoDriver = null; static readonly PCIDevice svgaIIDevice = PCI.GetDevice(VendorID.VMWare, DeviceID.SVGAIIAdapter); /// diff --git a/source/Cosmos.System2/Graphics/SVGAIICanvas.cs b/source/Cosmos.System2/Graphics/SVGAIICanvas.cs index c694205d8f..d0e1488d90 100644 --- a/source/Cosmos.System2/Graphics/SVGAIICanvas.cs +++ b/source/Cosmos.System2/Graphics/SVGAIICanvas.cs @@ -18,7 +18,7 @@ public class SVGAIICanvas : Canvas static readonly Mode defaultMode = new(1024, 768, ColorDepth.ColorDepth32); Mode mode; - readonly VMWareSVGAII driver; + private readonly VMWareSVGAII driver; /// /// Initializes a new instance of the class. diff --git a/source/Cosmos.System2/Graphics/VBECanvas.cs b/source/Cosmos.System2/Graphics/VBECanvas.cs index 62a77c6bd2..493732cbf4 100644 --- a/source/Cosmos.System2/Graphics/VBECanvas.cs +++ b/source/Cosmos.System2/Graphics/VBECanvas.cs @@ -14,7 +14,7 @@ namespace Cosmos.System.Graphics public class VBECanvas : Canvas { static readonly Mode defaultMode = new(1024, 768, ColorDepth.ColorDepth32); - readonly VBEDriver driver; + private readonly VBEDriver driver; Mode mode; /// diff --git a/source/Cosmos.System2/Graphics/VGACanvas.cs b/source/Cosmos.System2/Graphics/VGACanvas.cs index 0d39b52f90..9cc89fbd40 100644 --- a/source/Cosmos.System2/Graphics/VGACanvas.cs +++ b/source/Cosmos.System2/Graphics/VGACanvas.cs @@ -12,7 +12,7 @@ namespace Cosmos.System.Graphics public class VGACanvas : Canvas { bool enabled; - readonly VGADriver driver; + private readonly VGADriver driver; /// /// Available VGA supported video modes.