Mail Archives: djgpp/1998/04/06/18:00:24
TackMast writes:
>i'm wondering if it might be because i use the dat archiver instead of
>the grabber
Unlikely: both utilities use the exact same code for creating and
manipulating the datafiles.
>since the grabber just won't work.
Why not? You need to give some more details about this problem before
anyone can advise you how to solve it!
Have you tried using the -8 commandline option to force a 256 color
mode?
>strcpy(buf, argv[0]);
>strcpy(get_filename(buf), "example.dat");
>datafile = load_datafile(buf);
>
>datafile = load_datafile("Picture.dat");
Why do you load two files and assign the results to the same variable?
This will lose the contents of example.dat entirely. It shouldn't cause
a crash, though, and the code seems fine apart from that. All I can
suggest is that you try loading your image into one of the Allegro
programs (which means getting the grabber working), and see whether you
have any similar problems there...
--
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 -