[SDL] Re: Does IMG_Load return a null surface if it failed to load the specified file for other people?

James Gregory jamesg at f2s.com
Wed Apr 14 16:47:20 PDT 2004


On Wed, 14 Apr 2004 17:20:00 -0500, David White wrote:

>> Because I'm quite sure it doesn't for me. I'm using SDL_image to load
>> pngs, and if it fails it returns some sort of invalid pointer or
> something.
> 
> It works fine for me. Wesnoth relies extensively on IMG_Load returning NULL
> if the file is non-existent, and I have never had a bug report that I've
> traced back to this. Wesnoth has users on MacOSX, Windows, and Linux, among
> other systems.

OK, hang on, sorry, it was in fact a stupid error on my part and nothing
at all to do with SDL_image.

	James





More information about the SDL mailing list