X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FDisplay%2FBochsGA%2Fbochsvbe.c;h=87c1d73418a2ce2c346db62cf80b8585b595afb2;hb=a6f11cb266052c58ae7e2d6d6e8abd34a9e93214;hp=3c8309e166656f7e498bc804b44f775674f2a03a;hpb=b98fbd4e9c71447d81fc9bd643fb174c76346e0f;p=tpg%2Facess2.git diff --git a/Modules/Display/BochsGA/bochsvbe.c b/Modules/Display/BochsGA/bochsvbe.c index 3c8309e1..87c1d734 100644 --- a/Modules/Display/BochsGA/bochsvbe.c +++ b/Modules/Display/BochsGA/bochsvbe.c @@ -98,7 +98,7 @@ int BGA_Install(char **Arguments) version = BGA_int_ReadRegister(VBE_DISPI_INDEX_ID); // NOTE: This driver was written for 0xB0C4, but they seem to be backwards compatable - if(version < 0xB0C4 || version > 0xB0C5) { + if(version != 0xB0C0 && (version < 0xB0C4 || version > 0xB0C5)) { Log_Warning("BGA", "Bochs Adapter Version is not 0xB0C4 or 0xB0C5, instead 0x%x", version); return MODULE_ERR_NOTNEEDED; } @@ -184,7 +184,7 @@ Uint64 BGA_Write(tVFS_Node *node, Uint64 off, Uint64 len, void *Buffer) { VT_Font_Render( chars->Ch, - dest + x*giVT_CharWidth, gpBGA_CurrentMode->width, + dest + x*giVT_CharWidth, 32, gpBGA_CurrentMode->width*4, VT_Colour12to24(chars->BGCol), VT_Colour12to24(chars->FGCol) );