CommonPIC32

Changeset

131:e7cf90210d94
2018-11-12 Paul Boddie raw files shortlog changelog graph Noted the significance of replicating values in the VGA display structure.
include/vga_display.h (file)
     1.1 --- a/include/vga_display.h	Sun Nov 11 22:23:40 2018 +0100
     1.2 +++ b/include/vga_display.h	Mon Nov 12 17:55:53 2018 +0100
     1.3 @@ -48,13 +48,18 @@
     1.4  
     1.5      int hsync_unit, vsync_unit;
     1.6  
     1.7 -    /* Current scanline. */
     1.8 +    /* Current scanline and pixel line. */
     1.9  
    1.10      uint32_t line;
    1.11 +    uint8_t *linedata;
    1.12  
    1.13 -    /* Screen start address, frame limit, current pixel line. */
    1.14 +    /* The start, limit and size of the screen are copied to this structure,
    1.15 +       allowing the display configuration to use different values such as those
    1.16 +       for a different display frame. */
    1.17  
    1.18 -    uint8_t *screen_start, *screen_limit, *linedata;
    1.19 +    /* Screen start address, frame limit. */
    1.20 +
    1.21 +    uint8_t *screen_start, *screen_limit;
    1.22  
    1.23      /* Screen size, used to wrap the current line pointer. */
    1.24