- Seguim treballant en polir bugs i deixar guapeta la API
This commit is contained in:
2
gifenc.h
2
gifenc.h
@@ -47,7 +47,7 @@ namespace gif
|
||||
|
||||
static void put_loop(gif_t *gif, uint16_t loop);
|
||||
|
||||
gif_t *create(const char *fname, uint16_t width, uint16_t height, uint8_t *palette, uint8_t depth, uint8_t bgindex, int loop)
|
||||
gif_t *create(const char *fname, uint16_t width, uint16_t height, uint8_t *palette, uint8_t depth, int16_t bgindex, int loop)
|
||||
{
|
||||
gif_t *gif = (gif_t*)calloc(1, sizeof(*gif) + (bgindex < 0 ? 2 : 1)*width*height);
|
||||
gif->w = width; gif->h = height;
|
||||
|
||||
Reference in New Issue
Block a user