X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fdrv%2Fvga.c;h=54360697dd6a5117bdbc621190d0500a30012c59;hb=881a49e0164c582d24db527e474f587a8b5e0c32;hp=ff83e53991b4da7fe107088acb04cd14492d9dd2;hpb=dea6bcf35a3f52396724d74e47f71cb3afade37c;p=tpg%2Facess2.git diff --git a/Kernel/drv/vga.c b/Kernel/drv/vga.c index ff83e539..54360697 100644 --- a/Kernel/drv/vga.c +++ b/Kernel/drv/vga.c @@ -15,6 +15,7 @@ int VGA_Install(char **Arguments); Uint64 VGA_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer); int VGA_IOCtl(tVFS_Node *Node, int Id, void *Data); +Uint8 VGA_int_GetColourNibble(Uint16 col); Uint16 VGA_int_GetWord(tVT_Char *Char); void VGA_int_SetCursor(Sint16 x, Sint16 y); @@ -123,7 +124,6 @@ Uint8 VGA_int_GetColourNibble(Uint16 col) col = ((col>>2)&3) | ((col>>4)&0xC) | ((col>>6)&0x30); bright = ( (col & 2 ? 1 : 0) + (col & 8 ? 1 : 0) + (col & 32 ? 1 : 0) ) / 2; - switch(col) { // Black