From e827187a5a65e7e925f632462ee9e9028e5153d0 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Tue, 12 Jul 2011 08:30:08 -0700 Subject: [PATCH] fixed GIFInputFuncData struct style --- src/Image.cc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Image.cc b/src/Image.cc index c349f26..ba5400b 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -391,17 +391,20 @@ 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) return CAIRO_STATUS_READ_ERROR;