1.1 --- a/lib/image.c Sat Nov 10 23:00:40 2018 +0100
1.2 +++ b/lib/image.c Sat Nov 10 23:38:09 2018 +0100
1.3 @@ -96,3 +96,17 @@
1.4 s->image->width, s->image->height / s->yscale, 1,
1.5 p->x, p->y, -1, 1);
1.6 }
1.7 +
1.8 +
1.9 +
1.10 +/* Plot a section of an image without storing the background beforehand. */
1.11 +
1.12 +void image_plot_sprite_section(sprite_t *s,
1.13 + int xstart, int ystart, int xsize, int ysize,
1.14 + int x, int y, int key)
1.15 +{
1.16 + display_copy_section(s->cfg, s->image->image,
1.17 + s->image->width, s->image->height,
1.18 + xstart, ystart, xsize, ysize, s->yscale,
1.19 + x, y, key, 1);
1.20 +}