Skip to content

Commit 763d7e4

Browse files
authored
Merge pull request #7669 from dhalbert/gif-delay-fix
OnDiskGif delay was being chopped to 8 bits
2 parents 965caa0 + bac1a96 commit 763d7e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-bindings/gifio/OnDiskGif.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ uint32_t common_hal_gifio_ondiskgif_get_pixel(gifio_ondiskgif_t *bitmap,
4040
uint16_t common_hal_gifio_ondiskgif_get_height(gifio_ondiskgif_t *self);
4141
mp_obj_t common_hal_gifio_ondiskgif_get_bitmap(gifio_ondiskgif_t *self);
4242
uint16_t common_hal_gifio_ondiskgif_get_width(gifio_ondiskgif_t *self);
43-
uint8_t common_hal_gifio_ondiskgif_next_frame(gifio_ondiskgif_t *self, bool setDirty);
43+
uint32_t common_hal_gifio_ondiskgif_next_frame(gifio_ondiskgif_t *self, bool setDirty);
4444
int32_t common_hal_gifio_ondiskgif_get_duration(gifio_ondiskgif_t *self);
4545
int32_t common_hal_gifio_ondiskgif_get_frame_count(gifio_ondiskgif_t *self);
4646
int32_t common_hal_gifio_ondiskgif_get_min_delay(gifio_ondiskgif_t *self);

shared-module/gifio/OnDiskGif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ int32_t common_hal_gifio_ondiskgif_get_max_delay(gifio_ondiskgif_t *self) {
185185
return self->max_delay;
186186
}
187187

188-
uint8_t common_hal_gifio_ondiskgif_next_frame(gifio_ondiskgif_t *self, bool setDirty) {
188+
uint32_t common_hal_gifio_ondiskgif_next_frame(gifio_ondiskgif_t *self, bool setDirty) {
189189
int nextDelay = 0;
190190
int result = GIF_playFrame(&self->gif, &nextDelay, self->bitmap);
191191

0 commit comments

Comments
 (0)