Also you need to set vga mode and color:
#include <stdio.h>
#include <stdlib.h>
#include <vga.h>
int main (void)
{
vga_init();
vga_setmode(G800x600x256); /* Or another mode */
vga_setcolor(10); /* Any color number */
vga_drawpixel(50,50);
/* Set back TEXT mode */
vga_setmode(TEXT);
exit(EXIT_SUCCESS);
}
Sincerely,
Konstantyn.
On Wed, 27 Sep 2000, Ivan Griffin wrote:
> You will need to link with libvga - use
> gcc -o pixel pixel.c -lvga
> to compile.
>
> You also need to call vga_init as your first svgalib call. Try
> man svgalib
> for more info.
>
> Your binary also needs to be setuid root.
>
> Best Regards,
> Ivan.
>
On 08/21/00, ""Nicolas Lechugas" <new_world@r...>" wrote:
> > Hi to all: I have a problem using the vga_drawpixel function. I have the
> > following program:
<snipped>