• C
    Per the contributor doc - added my name. Noticed urraka also did some work... · 28c28b0b
    Chris Forseth 提交于
    Per the contributor doc - added my name.   Noticed urraka also did some work here, so hopefully didn't step on any toes.
    
    - Fix an issue where the spec of the gif for restore to previous uses code 3, not 4.
    - To get results that worked - made an assumption that "clear to background" meant "revert back to what was there before I drew", where mode 1 would revert back to the previous frame [slightly different].  If I clear to background color instead, I ended up with large opaque squares in gifs that changes their transparent colour each frame.
    - Background color is supposed to be used only for pixels not rendered by the image, so took that to mean it only really affected the previous frame, or potentially any frame that used full disposal.  Since background color is allowed to be unspecified this is what lead me to believe I shouldn't use it for disposal.
    - Oh, also upped the codes table to 8192 as 4096 ended up being too small for a few of my test cases.
    
    Full disclaimer - I only read through the GIF format for this contribution, so competly could be misinterpreting the spec - but this gave me reuslts that matched Chrome.
    28c28b0b
stb_image.h 250.0 KB