> 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]> =
- [Fwd: Re: Allocating VRAM and blitting with GGI] Thayne Harbaugh
- Re: [Fwd: Re: Allocating VRAM and blitting with GGI] Christoph Egger
- Re: [Fwd: Re: Allocating VRAM and blitting with GGI] Brian S. Julin
- Re: [Fwd: Re: Allocating VRAM and blitting with GGI] Christoph Egger
- Re: [Fwd: Re: Allocating VRAM and blitting with GGI] benkenobi
- Re: [Fwd: Re: Allocating VRAM and blitting with G... Andreas Beck
- Re: [Fwd: Re: Allocating VRAM and blitting with GGI] benkenobi
