mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-10 10:11:31 +00:00
Update VBEDriver.cs
This commit is contained in:
parent
72c0143918
commit
dc47fa3c4c
1 changed files with 7 additions and 4 deletions
|
|
@ -10,7 +10,12 @@ namespace Cosmos.HAL.Drivers
|
|||
{
|
||||
|
||||
private Core.IOGroup.VBE IO = Core.Global.BaseIOGroups.VBE;
|
||||
|
||||
public VBEDriver()
|
||||
{
|
||||
if (Cosmos.HAL.PCI.GetDevice(1234, 1111) == null){
|
||||
throw new Exception("No BGA adapter found..");
|
||||
}
|
||||
}
|
||||
private void vbe_write(ushort index, ushort value)
|
||||
{
|
||||
IO.VbeIndex.Word = index;
|
||||
|
|
@ -19,9 +24,7 @@ namespace Cosmos.HAL.Drivers
|
|||
|
||||
public void vbe_set(ushort xres, ushort yres, ushort bpp)
|
||||
{
|
||||
if (Cosmos.HAL.PCI.GetDevice(1234, 1111) == null){
|
||||
throw new Exception("No BGA adapter found..");
|
||||
}
|
||||
|
||||
//Disable Display
|
||||
vbe_write(0x4, 0x00);
|
||||
//Set Display Xres
|
||||
|
|
|
|||
Loading…
Reference in a new issue