Mail Archives: djgpp/1999/03/15/09:37:28
Lark writes:
> picture = load_bmp("random.bmp", pal);
> set_palette(pal);
> blit(picture, screen, 0, 0, 300, 300, 100, 100);
What is pal defined as?
> The graphics mode as already been succesfully set to 640 by 480.
> These lines compile fine, but give me the error
> "Call frame traceback:"
> " at load_bmp+369"
Please post the rest of the traceback as well: there is some
useful information in there.
In this case I'll take a wild guess, although it is impossible
to say for sure without seeing the rest of your code, that you
have declared pal as an RGB * or a PALETTE * instead of just
a PALETTE.
> This is very frustrating. I am just copying source out of the
> documentation and it is not working.
Look at the ex15 program, and see what you are doing differently to
that. I can guarantee that ex15 works correctly, so wherever the
difference is, that is your problem.
Shawn Hargreaves.
- Raw text -