1.1 --- a/examples/vga/main.c Fri Nov 09 00:33:42 2018 +0100
1.2 +++ b/examples/vga/main.c Fri Nov 09 01:08:41 2018 +0100
1.3 @@ -110,10 +110,10 @@
1.4
1.5 static void plot_sprite(uint8_t *background, int x, int y)
1.6 {
1.7 - copy_display(&display_config, background,
1.8 + display_copy(&display_config, background,
1.9 sprite_width, sprite_height / SOURCE_YSTEP, 1,
1.10 x, y, -1, 0);
1.11 - copy_display(&display_config, sprite,
1.12 + display_copy(&display_config, sprite,
1.13 sprite_width, sprite_height, SOURCE_YSTEP,
1.14 x, y, 0x8c, 1);
1.15 }
1.16 @@ -122,7 +122,7 @@
1.17
1.18 static void unplot_sprite(uint8_t *background, int x, int y)
1.19 {
1.20 - copy_display(&display_config, background,
1.21 + display_copy(&display_config, background,
1.22 sprite_width, sprite_height / SOURCE_YSTEP, 1,
1.23 x, y, -1, 1);
1.24 }
1.25 @@ -161,7 +161,7 @@
1.26 upwards (or downwards having wrapped around) on the
1.27 screen. */
1.28
1.29 - copy_display_section(&display_config, screendata,
1.30 + display_copy_section(&display_config, screendata,
1.31 screendata_width, screendata_height,
1.32 xsource, ypos,
1.33 width, screendata_height - ypos,
1.34 @@ -175,7 +175,7 @@
1.35 screen. */
1.36
1.37 if (ypos)
1.38 - copy_display_section(&display_config, screendata,
1.39 + display_copy_section(&display_config, screendata,
1.40 screendata_width, screendata_height,
1.41 xsource, 0,
1.42 width, ypos,
1.43 @@ -273,7 +273,7 @@
1.44 /* Select the next frame to plot to. */
1.45
1.46 frame = wrap_value(frame + 1, display_config.frames);
1.47 - select_frame(&display_config, frame, frame_offset[frame]);
1.48 + display_select_frame(&display_config, frame, frame_offset[frame]);
1.49
1.50 /* Prepare the frame for updates. */
1.51
1.52 @@ -309,12 +309,12 @@
1.53
1.54 /* Scroll the frame. */
1.55
1.56 - scroll_display(&display_config, xstep / SCROLL_XSTEP,
1.57 + display_scroll(&display_config, xstep / SCROLL_XSTEP,
1.58 ystep / SOURCE_YSTEP);
1.59
1.60 /* Record the new screen start offset. */
1.61
1.62 - frame_offset[frame] = get_start_offset(&display_config);
1.63 + frame_offset[frame] = display_get_start_offset(&display_config);
1.64
1.65 /* For horizontal scrolling, plot the exposed column at the left
1.66 (if scrolling left) or at the right (if scrolling right). */
1.67 @@ -372,11 +372,11 @@
1.68 {
1.69 /* Obtain the frame. */
1.70
1.71 - select_frame(&display_config, frame, 0);
1.72 + display_select_frame(&display_config, frame, 0);
1.73
1.74 /* Plot the image centred on the screen. */
1.75
1.76 - copy_display(&display_config, screendata,
1.77 + display_copy(&display_config, screendata,
1.78 screendata_width, screendata_height,
1.79 SOURCE_YSTEP,
1.80 (display_config.line_length - screendata_width) / 2,
1.81 @@ -388,7 +388,7 @@
1.82 write_chars();
1.83 }
1.84
1.85 - select_frame(&display_config, 0, 0);
1.86 + display_select_frame(&display_config, 0, 0);
1.87 }
1.88
1.89