Date: Thu, 29 Aug 1996 17:52:11 +0200 (MET DST) From: Mark Habersack Reply-To: grendel AT ananke DOT amu DOT edu DOT pl To: Mike Marcelais cc: djgpp AT delorie DOT com Subject: Re: djgpp/allegro - help! - quick question In-Reply-To: <01bb9530$89683f60$ba27379d@michmarc2> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 28 Aug 1996, Mike Marcelais wrote: >| > After I use the above routine in my code, I get a GPF in the marked >| > area. It won't GPF the first time it hits the marked code area, but >| > it will interate the inner loop about 40 (actual number depends on >| > phase of the moons) times, then GPFs. Am I dereferencing the >| > array/struct wrong? Please help, this thing is killing me :) >| Perhaps since you've only allocated one palette structure and >| you're trying to access more than one? > >No...but close. :-) > >| >| Look at the allegro.h file. You'll find the line: Oops! Should've done that before I posted my message ;-)))) Sorry for the confusion I caused ;-)))) (I'm blushing right now ;-))) >| >typedef RGB PALLETE[PAL_SIZE]; Yeah.... Mark /************************************************************/ /** Maybe it was infatuation or the thrill of a chase? **/ /** Maybe you were always beyond my reach and my heart **/ /** was playing safe? ***********/ /** But was that love in your eyes I saw, **/ /** or the reflection of mine? **/ /** I'll never really know for sure, **/ /** You never really gave me time! **/ /** Won't you give me that time? **/ /** "Cindirella Search" **/ /********************************/ Visit my homepage: http://ananke.amu.edu.pl/~grendel