Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Date: Tue, 24 Apr 2001 15:26:53 +0200 (MET DST)
From: "Mattias Engdeg?rd" <f91-men@nada.kth.se> Subject: XPM patch to SDL_image A couple of people have requested an interface to SDL_image for loading SDL images directly from #included XPM files in the C source. Writing a separate loader for this would be silly as the code in SDL_image already does the XPM parsing, so I added a new call to the SDL_image API: SDL_Surface *IMG_ReadXPMFromArray(char **xpm); which does the obvious thing. As a bonus, the code got a little cleaner as well. (We probably need to increase the minor .so-version number since the interface got changed but I didn't do so in my patch.) We should perhaps include the rgb.txt colour name database as well, since it's quite small (~13K in binary form), but I haven't made up my mind Cheers, Mattias
- Loading branch information