1.1 --- a/lib/display.c Sat Nov 10 19:20:13 2018 +0100
1.2 +++ b/lib/display.c Sat Nov 10 21:30:09 2018 +0100
1.3 @@ -24,35 +24,8 @@
1.4
1.5 /* Initialise a display configuration. */
1.6
1.7 -void init_display(display_config_t *cfg, uint8_t *framebuffer,
1.8 - uint32_t line_length, uint32_t line_count,
1.9 - int frames, uint8_t **screen_starts)
1.10 +void init_display(display_config_t *cfg)
1.11 {
1.12 - /* Framebuffer address. */
1.13 -
1.14 - cfg->framebuffer = framebuffer;
1.15 -
1.16 - /* Frame allocation limits. */
1.17 -
1.18 - cfg->total_lines = (line_count + 1) * frames;
1.19 - cfg->max_frames = frames;
1.20 -
1.21 - /* Screen size and dimensions. */
1.22 -
1.23 - cfg->screen_size = line_length * line_count;
1.24 - cfg->line_length = line_length;
1.25 - cfg->line_count = line_count;
1.26 -
1.27 - /* Set the number of frames and the current frame. */
1.28 -
1.29 - cfg->frames = frames;
1.30 - cfg->frame = 0;
1.31 -
1.32 - /* Set the pointer to a collection of screen start pointers, one per
1.33 - frame. */
1.34 -
1.35 - cfg->screen_starts = screen_starts;
1.36 -
1.37 init_frames(cfg);
1.38 init_display_properties(cfg);
1.39 }