1.1 --- a/lib/image.c Tue Nov 13 12:57:52 2018 +0100
1.2 +++ b/lib/image.c Tue Nov 13 14:35:22 2018 +0100
1.3 @@ -25,9 +25,9 @@
1.4
1.5 /* Obtain the position for the stored region from the given frame. */
1.6
1.7 -position_t *image_get_stored_position(stored_regions_t *r, int frame)
1.8 +position_t *image_get_stored_position(sprite_t *s, int frame)
1.9 {
1.10 - return &r->pos[frame];
1.11 + return &s->pos[frame];
1.12 }
1.13
1.14 /* Obtain the image data for the stored region from the given frame. */
1.15 @@ -49,7 +49,7 @@
1.16 if (s->regions)
1.17 {
1.18 frame = s->cfg->frame;
1.19 - p = image_get_stored_position(s->regions, frame);
1.20 + p = image_get_stored_position(s, frame);
1.21
1.22 /* Copy to the stored region. */
1.23
1.24 @@ -88,7 +88,7 @@
1.25 return;
1.26
1.27 frame = s->cfg->frame;
1.28 - p = image_get_stored_position(s->regions, frame);
1.29 + p = image_get_stored_position(s, frame);
1.30
1.31 /* Only unplot the sprite if a region was stored for the frame. */
1.32