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
Fixed the EnvP array passed to Proc_StartUser not being NULL terminated
[tpg/acess2.git]
/
Kernel
/
drv
/
vga.c
diff --git
a/Kernel/drv/vga.c
b/Kernel/drv/vga.c
index
4c85631
..
ff83e53
100644
(file)
--- a/
Kernel/drv/vga.c
+++ b/
Kernel/drv/vga.c
@@
-1,7
+1,8
@@
/*
* Acess2 VGA Controller Driver
*/
/*
* Acess2 VGA Controller Driver
*/
-#include <common.h>
+#define DEBUG 0
+#include <acess.h>
#include <fs_devfs.h>
#include <tpl_drv_video.h>
#include <modules.h>
#include <fs_devfs.h>
#include <tpl_drv_video.h>
#include <modules.h>
@@
-50,7
+51,7
@@
int VGA_Install(char **Arguments)
// Install DevFS
DevFS_AddDevice( &gVGA_DevInfo );
// Install DevFS
DevFS_AddDevice( &gVGA_DevInfo );
- return
1
;
+ return
MODULE_ERR_OK
;
}
/**
}
/**
@@
-98,6
+99,10
@@
int VGA_IOCtl(tVFS_Node *Node, int Id, void *Data)
((tVideo_IOCtl_Mode*)Data)->height = VGA_HEIGHT;
((tVideo_IOCtl_Mode*)Data)->bpp = 4;
return 1;
((tVideo_IOCtl_Mode*)Data)->height = VGA_HEIGHT;
((tVideo_IOCtl_Mode*)Data)->bpp = 4;
return 1;
+
+ case VIDEO_IOCTL_SETBUFFORMAT:
+ return 0;
+
case VIDEO_IOCTL_SETCURSOR:
VGA_int_SetCursor( ((tVideo_IOCtl_Pos*)Data)->x, ((tVideo_IOCtl_Pos*)Data)->y );
return 1;
case VIDEO_IOCTL_SETCURSOR:
VGA_int_SetCursor( ((tVideo_IOCtl_Pos*)Data)->x, ((tVideo_IOCtl_Pos*)Data)->y );
return 1;
UCC
git Repository :: git.ucc.asn.au