mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 11:50:48 +00:00
* Source/NSBitmapImageRep+GIF.m: Handle EGifOpen similar to
other version specific functions. * Headers/Additions/GNUstepGUI/GSXibElement.h * Headers/Additions/GNUstepGUI/GSXibLoading.h * Headers/Additions/GNUstepGUI/GSXibObjectContainer.h * Headers/Additions/GNUstepGUI/GSXibParser.h Correct FSF address. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8060ece175
commit
41d42922c2
6 changed files with 53 additions and 34 deletions
|
@ -59,6 +59,7 @@ objective-c headers.
|
|||
// GIF > 5.0
|
||||
#if GIFLIB_MAJOR >= 5
|
||||
#define DGifOpen(s, i) DGifOpen(s, i, NULL)
|
||||
#define EGifOpen(s, i) EGifOpen(s, i, NULL)
|
||||
#endif
|
||||
|
||||
// GIF> 5.1
|
||||
|
@ -529,11 +530,8 @@ static int gs_gif_output(GifFileType *file, const GifByteType *buffer, int len)
|
|||
free(GIFImage);
|
||||
return nil;
|
||||
}
|
||||
#if GIFLIB_MAJOR >= 5
|
||||
GIFFile = EGifOpen(GIFRep, gs_gif_output, NULL);
|
||||
#else
|
||||
|
||||
GIFFile = EGifOpen(GIFRep, gs_gif_output);
|
||||
#endif
|
||||
status = EGifPutScreenDesc(GIFFile, width, height, 8, 0, NULL);
|
||||
if (status == GIF_ERROR)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue