git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/UDI - Enumeration working, ne2000 starting to bind to PCI
[tpg/acess2.git]
/
KernelLand
/
Modules
/
x86
/
VGAText
/
vga.c
diff --git
a/KernelLand/Modules/x86/VGAText/vga.c
b/KernelLand/Modules/x86/VGAText/vga.c
index
41f0bd0
..
d72caaf
100644
(file)
--- a/
KernelLand/Modules/x86/VGAText/vga.c
+++ b/
KernelLand/Modules/x86/VGAText/vga.c
@@
-13,7
+13,7
@@
// === PROTOTYPES ===
int VGA_Install(char **Arguments);
// === PROTOTYPES ===
int VGA_Install(char **Arguments);
-
Uint64 VGA_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, const void *Buffer
);
+
size_t VGA_Write(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buffer, Uint Flags
);
int VGA_IOCtl(tVFS_Node *Node, int Id, void *Data);
Uint8 VGA_int_GetColourNibble(Uint16 col);
Uint16 VGA_int_GetWord(const tVT_Char *Char);
int VGA_IOCtl(tVFS_Node *Node, int Id, void *Data);
Uint8 VGA_int_GetColourNibble(Uint16 col);
Uint16 VGA_int_GetWord(const tVT_Char *Char);
@@
-70,7
+70,7
@@
int VGA_Install(char **Arguments)
/**
* \brief Writes a string of bytes to the VGA controller
*/
/**
* \brief Writes a string of bytes to the VGA controller
*/
-
Uint64 VGA_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, const void *Buffer
)
+
size_t VGA_Write(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buffer, Uint Flags
)
{
if( giVGA_BufferFormat == VIDEO_BUFFMT_TEXT )
{
{
if( giVGA_BufferFormat == VIDEO_BUFFMT_TEXT )
{
@@
-252,6
+252,7
@@
void VGA_2D_Fill(void *Ent, Uint16 X, Uint16 Y, Uint16 W, Uint16 H, Uint32 Colou
ch.BGCol = (Colour & 0x0F0000) >> (16-8);
ch.BGCol |= (Colour & 0x000F00) >> (8-4);
ch.BGCol |= (Colour & 0x00000F);
ch.BGCol = (Colour & 0x0F0000) >> (16-8);
ch.BGCol |= (Colour & 0x000F00) >> (8-4);
ch.BGCol |= (Colour & 0x00000F);
+ ch.FGCol = 0;
word = VGA_int_GetWord(&ch);
Log("Fill (%i,%i) %ix%i with 0x%x", X, Y, W, H, word);
word = VGA_int_GetWord(&ch);
Log("Fill (%i,%i) %ix%i with 0x%x", X, Y, W, H, word);
UCC
git Repository :: git.ucc.asn.au