From 3c2125c0cdac43be6c77be64cfcd72180bdae8d3 Mon Sep 17 00:00:00 2001 From: valentinbreiz Date: Thu, 16 Jul 2020 22:42:11 +0200 Subject: [PATCH] build fix + fct rename --- source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs | 4 ++-- source/Cosmos.System2/Graphics/FullScreenCanvas.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs b/source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs index e7329e6f8..b7174ef8a 100644 --- a/source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs +++ b/source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs @@ -84,7 +84,7 @@ namespace Cosmos.HAL.Drivers IO.LinearFrameBuffer = new MemoryBlock(VBE.getLfbOffset(), (uint)xres * yres * (uint)(bpp / 8)); lastbuffer = new ManagedMemoryBlock((uint)xres * yres * (uint)(bpp / 8)); } - else if (AvailableISAMode()) //Bochs Graphics Adaptor ISA Mode + else if (ISAModeAvailable()) //Bochs Graphics Adaptor ISA Mode { Global.mDebugger.SendInternal($"Creating VBE BGA driver with Mode {xres}*{yres}@{bpp}."); @@ -123,7 +123,7 @@ namespace Cosmos.HAL.Drivers IO.VbeIndex.Word = (ushort)index; return IO.VbeData.Word; } - public static bool AvailableISAMode() + public static bool ISAModeAvailable() { //This code wont work as long as Bochs uses BGA ISA, since it wont discover it in PCI #if false diff --git a/source/Cosmos.System2/Graphics/FullScreenCanvas.cs b/source/Cosmos.System2/Graphics/FullScreenCanvas.cs index 48f01bf88..a6e273050 100644 --- a/source/Cosmos.System2/Graphics/FullScreenCanvas.cs +++ b/source/Cosmos.System2/Graphics/FullScreenCanvas.cs @@ -48,7 +48,7 @@ namespace Cosmos.System.Graphics /// public static bool BGAExists() { - return VBEDriver.Available(); + return VBEDriver.ISAModeAvailable(); } ///