From: JeLlyFish DOT software AT gmx DOT net (Vinzent Hoefler) Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems with allegro Date: Sun, 15 Aug 1999 14:07:33 GMT Organization: JeLlyFish software Message-ID: <7p6hjn$h9t$3@news06.btx.dtag.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news06.btx.dtag.de 934726071 17725 777000109768-0001 990815 14:07:51 X-Complaints-To: abuse AT t-online DOT de X-Sender: 777000109768-0001 AT t-online DOT de X-Newsreader: Forte Free Agent 1.11/16.235 Lines: 26 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Al Morgan" wrote: >The problem is when I tried to set the palette, beacuse my picture >was turning out all wrong colors, but when I did, it gave an error (copied >below my program). Is it me, or is it my computer that has a problem? > >#include >#include > >void main() > { > allegro_init(); > install_keyboard(); > install_mouse(); > > set_gfx_mode(GFX_MODEX, 320, 240, 320, 480); > > PALETTE *p; Perhaps you should allocate memory for your palette? :) Vinzent.