delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/15/12:13:21

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: <rrdcsel3krl32 AT corp DOT supernews DOT com>
Mime-Version: 1.0
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" <muaddib AT proaxis DOT com> 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 <allegro.h>
>#include <conio.h>
>
>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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019