Mail Archives: djgpp/1998/01/30/21:18:46
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!
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -