# HG changeset patch # User Paul Boddie # Date 1542041753 -3600 # Node ID e7cf90210d941b89c889c9350b8f4289fb34ed90 # Parent c8bb3228030dcbe7455dc88e5b8de57da359f500 Noted the significance of replicating values in the VGA display structure. diff -r c8bb3228030d -r e7cf90210d94 include/vga_display.h --- a/include/vga_display.h Sun Nov 11 22:23:40 2018 +0100 +++ b/include/vga_display.h Mon Nov 12 17:55:53 2018 +0100 @@ -48,13 +48,18 @@ int hsync_unit, vsync_unit; - /* Current scanline. */ + /* Current scanline and pixel line. */ uint32_t line; + uint8_t *linedata; - /* Screen start address, frame limit, current pixel line. */ + /* The start, limit and size of the screen are copied to this structure, + allowing the display configuration to use different values such as those + for a different display frame. */ - uint8_t *screen_start, *screen_limit, *linedata; + /* Screen start address, frame limit. */ + + uint8_t *screen_start, *screen_limit; /* Screen size, used to wrap the current line pointer. */