diff --git a/Makefile.cfg b/Makefile.cfg index 7e2734d..0f2b440 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -44,7 +44,7 @@ CONFDIR = $(SRCDIR)/src/config # Common prefix for installation directories. # NOTE: This directory must exist when you start the install. TOPDIR= -prefix = $(TOPDIR)/usr +prefix = $(TOPDIR)/usr/local exec_prefix = $(prefix) # Directory where the shared stubs and static library will be installed. diff --git a/src/svgalib_helper.h b/src/svgalib_helper.h new file mode 120000 index 0000000..87ec714 --- /dev/null +++ b/src/svgalib_helper.h @@ -0,0 +1 @@ +../kernel/svgalib_helper/svgalib_helper.h \ No newline at end of file diff --git a/src/vga.c b/src/vga.c index 00b50c9..50a9a48 100644 --- a/src/vga.c +++ b/src/vga.c @@ -438,9 +438,9 @@ int mouse_open = 0; static int mouse_mode = 0; static int mouse_type = -1; static int mouse_modem_ctl = 0; -char *__svgalib_mouse_device = "/dev/mouse"; +char *__svgalib_mouse_device = "/dev/input/mice"; int __svgalib_mouse_flag; -static char *helper_device = "/dev/svga"; +static char *helper_device = "/dev/svga0"; static int __svgalib_oktowrite = 1; static int modeinfo_mask = ~0; static int configfile_chipset = UNDEFINED; diff --git a/stars/stars.c b/stars/stars.c new file mode 100644 index 0000000..eb75103 --- /dev/null +++ b/stars/stars.c @@ -0,0 +1,13 @@ +#include +#include + + +int main(void) +{ vga_init(); +/* vga_setmode(G320x200x256); */ + vga_setmode(146); + while(vga_getkey()==0) vga_setcolor(rand()&255), + vga_drawpixel(rand()%320,rand()%200); + vga_setmode(TEXT); + exit(0); +}