Mail Archives: djgpp/1998/01/30/23:59:20
> Richard Chappell writes:
> >Why is that, using Allegro, I get a warning for the line:
> >
> >bmp=load_bmp("bmp/welcome.bmp",pal);
> >
> >Whats wrong with it?
>
> It is impossible to say without seeing some more of your code. Most
> likely you have declared either your bmp or your pal variable as the
> wrong type: bmp should be a BITMAP *, and pal should be a PALETTE or an
> RGB[256].
>
> The ex15.c program demonstrates how to load and display an image file:
> look at this to see how you should declare these variables.
>
> >The warning is something like "converting int to pointer without a
> >cast" or it might be the other way round (pointer to int), but it's
> >SOMETHING like that, anyway.
>
> Please try to be as precise as possible when asking for help: if you
> don't give specific information in your question, it is very hard for
> anyone to give you an accurate answer in reply!
I declared the variables:
BITMAP *bmp;
PALETTE pal;
- Raw text -