From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro: clear_to_color() Date: 12 Oct 1997 13:57:33 GMT Organization: Oxford University, England Lines: 16 Message-ID: <61ql0d$auh$2@news.ox.ac.uk> References: <61oa8b$9vg$1 AT news DOT interlog DOT com> <61oclb$li3$2 AT news DOT ox DOT ac DOT uk> <61og7g$hm6$1 AT news DOT interlog DOT com> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Gautam N. Lad (gautam AT interlog DOT com) wrote: : >Did you set_gfx_mode first? Did the call to set_gfx_mode succeed? I expect : >one of those is your problem. :) : Yes. I was in graphics mode (set using the GFX_AUTODETECT). RIght after : graphics system was init., I called the function, and I get a GPF. But did the call succeed? set_gfx_mode returns 0 on success, negative on error. After calling it you should check its return value, and if it was negative report the error stored in allegro_error. hth -- George Foot Merton College, Oxford