Browse Source

fixed GIFInputFuncData struct style

v1.x
Tj Holowaychuk 14 years ago
parent
commit
e827187a5a
  1. 13
      src/Image.cc

13
src/Image.cc

@ -391,16 +391,19 @@ Image::loadGIF() {
return result;
}
/*
* Load give from `buf` and the given `len`.
*/
cairo_status_t
Image::loadGIFFromBuffer(uint8_t *buf, unsigned len) {
int imageIdx = 0;
GifFileType* gft;
struct GIFInputFuncData gifd =
{
buf: buf,
length: len,
cpos: 0
struct GIFInputFuncData gifd = {
buf: buf
, length: len
, cpos: 0
};
if((gft = DGifOpen((void*) &gifd, readGIFFromMemory)) == NULL)

Loading…
Cancel
Save