Is the bmp image RLE compressed? SDL doesn't support RLE compressed bitmaps. Try with another bitmap, or re-save your image and disable the RLE compression. If you're using gimp, this should be under "options" in the save image dialog.
-Richardo
SDL wont work
Try putting the BMP in the different folders in your project. That was the problem I had with KDevelope. It didn't work in having it in the same folder as the .c/cpp file. Basically, try them all. I am sure one will work.
Is it bunny.bmp or camp.bmp? Check your filenames both in source code and in the directory where you load them.
Yes, when using KDevelop, if you're making a debug build, your executable will be created in the /debug/src subfolder. You need to put your BMP in this subfolder, or wherever else you might move your executable.
Ryan
Ryan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement