> hello, I have a segfault when running this program on my 2 computers

> blue=ggiMapColor(vis, &map);

That's where it probably faults ... vis is not initialized until after:

> if (!(vis = ggiOpen(NULL))) {
>         printf("Couldn't open a visual...\n");
>         }

Moreover you should set a mode before drawing:

> ggiFillscreen(vis);
> ggiPutPixel(vis, 0, 0, blue);

and use 

int ggiKbhit(ggi_visual_t vis);
int ggiGetc(ggi_visual_t vis);

instead of:

> getchar();

Cu, ANdy

-- 
= Andreas Beck                    |  Email :  <[EMAIL PROTECTED]>             =

Reply via email to