1.1 --- a/examples/vga/main.c Sat Nov 10 22:11:32 2018 +0100
1.2 +++ b/examples/vga/main.c Sat Nov 10 22:40:06 2018 +0100
1.3 @@ -281,6 +281,7 @@
1.4
1.5 static void setup(void)
1.6 {
1.7 + SpriteOverwriting(scr, &screendata, &display_config, SOURCE_YSTEP);
1.8 int frame;
1.9
1.10 for (frame = 0; frame < display_config.frames; frame++)
1.11 @@ -291,12 +292,10 @@
1.12
1.13 /* Plot the image centred on the screen. */
1.14
1.15 - display_copy(&display_config, screendata.image,
1.16 - screendata.width, screendata.height,
1.17 - SOURCE_YSTEP,
1.18 - (display_config.line_length - screendata.width) / 2,
1.19 - (display_config.line_count - (screendata.height / SOURCE_YSTEP)) / 2,
1.20 - -1, 1);
1.21 + image_plot_sprite(&scr,
1.22 + (display_config.line_length - scr.image->width) / 2,
1.23 + (display_config.line_count - (scr.image->height / scr.yscale)) / 2,
1.24 + -1);
1.25
1.26 /* Write a sequence of characters. */
1.27