1.1 --- a/include/display.h Fri Nov 09 21:04:23 2018 +0100
1.2 +++ b/include/display.h Fri Nov 09 21:05:06 2018 +0100
1.3 @@ -54,6 +54,10 @@
1.4
1.5 uint8_t *screen_start; /* >= frame_start; < screen_limit */
1.6
1.7 + /* A pointer to a collection of screen start pointers, one per frame. */
1.8 +
1.9 + uint8_t **screen_starts;
1.10 +
1.11 /* The fixed end address of the current frame. */
1.12
1.13 uint8_t *screen_limit; /* = frame_start + screen_size */
1.14 @@ -93,14 +97,19 @@
1.15 /* Configuration functions. */
1.16
1.17 void init_display(display_config_t *cfg, uint8_t *framebuffer,
1.18 - uint32_t line_length, uint32_t line_count, int frames);
1.19 + uint32_t line_length, uint32_t line_count,
1.20 + int frames, uint8_t **screen_starts);
1.21
1.22 -void init_display_properties(display_config_t *cfg, uint32_t offset);
1.23 +void init_display_properties(display_config_t *cfg);
1.24
1.25 -void display_select_frame(display_config_t *cfg, int frame, uint32_t offset);
1.26 +void init_frames(display_config_t *cfg);
1.27 +
1.28 +void display_select_frame(display_config_t *cfg, int frame);
1.29
1.30 void display_set_frames(display_config_t *cfg, int frames);
1.31
1.32 +uint8_t *display_get_frame_start(display_config_t *cfg, int frame);
1.33 +
1.34 uint32_t display_get_start_offset(display_config_t *cfg);
1.35
1.36 /* Access functions. */