Skip to content

Commit

Permalink
fixed constants for backwards compatibility and renamed gif.c to comp…
Browse files Browse the repository at this point in the history
…ile on RP2040 Connect
  • Loading branch information
Laurence Bank authored and Laurence Bank committed Jun 6, 2021
1 parent d3a0bd2 commit 342781d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/AnimatedGIF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "AnimatedGIF.h"

// Here is all of the actual code...
#include "gif.c"
#include "gif.inl"

//
// Memory initialization
Expand Down
3 changes: 3 additions & 0 deletions src/AnimatedGIF.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ enum {
GIF_PALETTE_RGB565_BE, // big endian
GIF_PALETTE_RGB888 // original 24-bpp entries
};
// for compatibility with older code
#define LITTLE_ENDIAN_PIXELS GIF_PALETTE_RGB565_LE
#define BIG_ENDIAN_PIXELS GIF_PALETTE_RGB565_BE
//
// Draw callback pixel type
// RAW = 8-bit palettized pixels requiring transparent pixel handling
Expand Down
File renamed without changes.

0 comments on commit 342781d

Please sign in to comment.