1.1 --- a/examples/vga/main.c Tue Nov 13 15:17:37 2018 +0100
1.2 +++ b/examples/vga/main.c Tue Nov 13 17:54:21 2018 +0100
1.3 @@ -94,7 +94,7 @@
1.4 extern image_t screendata;
1.5 extern image_t sprite;
1.6
1.7 -static SpriteOverwriting(scr, &screendata, &display_config, FRAME_COUNT, SOURCE_YSTEP);
1.8 +static SpriteOverwriting(scr, &screendata, &display_config, FRAME_COUNT, -1, SOURCE_YSTEP);
1.9
1.10 extern uint8_t fontchars[];
1.11 extern font_range_t fontbase;
1.12 @@ -118,7 +118,7 @@
1.13 {
1.14 /* Stores of background details, replotted when moving the sprite. */
1.15
1.16 - Sprite(s, &sprite, &display_config, FRAME_COUNT, SOURCE_YSTEP);
1.17 + Sprite(s, &sprite, &display_config, FRAME_COUNT, 0x0c, SOURCE_YSTEP);
1.18
1.19 /* Sprite position. */
1.20
1.21 @@ -149,7 +149,8 @@
1.22 {
1.23 for (x = 0; x < display_config.line_length - s.image->width; x++)
1.24 {
1.25 - image_plot_sprite(&s, x, y, 0x0c);
1.26 + image_set_sprite_position(&s, x, y);
1.27 + image_plot_sprite(&s);
1.28
1.29 /* Update the display with the frame details. */
1.30