1.1 --- a/lib/display.c Fri Nov 09 21:05:06 2018 +0100
1.2 +++ b/lib/display.c Fri Nov 09 22:50:30 2018 +0100
1.3 @@ -117,6 +117,13 @@
1.4 init_display_properties(cfg);
1.5 }
1.6
1.7 +/* Select the next available frame in the framebuffer. */
1.8 +
1.9 +void display_select_next_frame(display_config_t *cfg)
1.10 +{
1.11 + display_select_frame(cfg, wrap_value(cfg->frame + 1, cfg->frames));
1.12 +}
1.13 +
1.14 /* Set the number of frames in the framebuffer memory. */
1.15
1.16 void display_set_frames(display_config_t *cfg, int frames)