# HG changeset patch # User Paul Boddie # Date 1540940387 -3600 # Node ID b54c63959b330d836d024aa6005e7993f398385b # Parent 876b75c4dbc15e22132a1ea27b8644a759a8ff20 Added an extra line to the framebuffer for horizontal scrolling purposes. diff -r 876b75c4dbc1 -r b54c63959b33 include/display_config.h --- a/include/display_config.h Tue Oct 30 23:59:17 2018 +0100 +++ b/include/display_config.h Tue Oct 30 23:59:47 2018 +0100 @@ -24,7 +24,15 @@ #include "display.h" #include "vga.h" -uint8_t framebuffer[SCREEN_SIZE]; +/* Reserve enough space for a screen, plus one line to allow horizontal + scrolling, since a horizontal scroll offset causes the final transfer line to + exceed the screen limit. */ + +uint8_t framebuffer[SCREEN_SIZE + LINE_LENGTH]; + + + +/* Define a structure containing the display parameters. */ display_config_t display_config = {