![]() |
|
load_png and load_bmp problems |
Steve Terry
Member #1,989
March 2002
![]() |
Ok I finally got libpng and loadpng installed correctly and am playing around with the concept of using png files instead of bitmaps for my program. To add backwards compatibility I want to be able to load both png and bitmap but am running into a few problems. For instance I was returning bitmap pointers from a loaded datafile, this worked fine for bitmap, but png crashed. I'm also aware I could just do load_png("datafile.dat#filename_png", NULL) without loading a datafile, which worked fine, but when I used the same convention on load_bitmap i.e. load_bitmap("datafile.dat#filename.bmp", NULL) the program crashed. I couldn't find anywhere that load_bitmap supports this, but assumed it did since load_png does. I've also tried patching grabber but patch fails. All I'm doing to load the png files into a datafile is dat -a file.dat file.png. Help please ___________________________________ |
Peter Wang
Member #23
April 2000
|
Quote: For instance I was returning bitmap pointers from a loaded datafile, this worked fine for bitmap, but png crashed. What does it mean, exactly, to return bitmap pointers from a loaded datafile? Quote: when I used the same convention on load_bitmap i.e. load_bitmap("datafile.dat#filename.bmp", NULL) the program crashed. Crashed where? Did load_bitmap return NULL? You might have to use load_bmp instead. Quote: I've also tried patching grabber but patch fails. Works for me (with 4.0.3).
|
|