1.1 --- a/examples/vga-timer/vga.h Sat Nov 03 16:42:17 2018 +0100
1.2 +++ b/examples/vga-timer/vga.h Sat Nov 03 21:47:40 2018 +0100
1.3 @@ -24,7 +24,7 @@
1.4
1.5 #define LINE_LENGTH 92 /* pixels */
1.6 #define LINE_COUNT 128 /* distinct display lines */
1.7 -#define LINE_MULTIPLIER (SCANLINES / LINE_COUNT)
1.8 +#define FRAME_COUNT 1 /* double-buffered display */
1.9
1.10 /* 24MHz cycle measurements. */
1.11
1.12 @@ -37,6 +37,12 @@
1.13
1.14 #define SCREEN_SIZE (LINE_LENGTH * LINE_COUNT)
1.15
1.16 +/* A frame has an entire screen plus one line to allow horizontal scrolling,
1.17 + since a horizontal scroll offset causes the final transfer line to exceed the
1.18 + screen limit. */
1.19 +
1.20 +#define FRAME_SIZE (SCREEN_SIZE + LINE_COUNT)
1.21 +
1.22 /* Transfer and pixel allocation properties. */
1.23
1.24 #define TRANSFER_CELL_SIZE 1