1.1 --- a/examples/vga/vga.h Tue Oct 23 19:17:34 2018 +0200
1.2 +++ b/examples/vga/vga.h Tue Oct 23 19:29:55 2018 +0200
1.3 @@ -22,6 +22,7 @@
1.4
1.5 #define LINE_LENGTH 160 /* pixels */
1.6 #define LINE_COUNT 256 /* distinct display lines */
1.7 +#define LINE_MULTIPLIER 2
1.8
1.9 #define ZERO_LENGTH 1 /* pixels */
1.10
1.11 @@ -35,7 +36,7 @@
1.12 /* Horizontal lines, back porch end. */
1.13
1.14 #define VISIBLE_START 70
1.15 -#define VFP_START (VISIBLE_START + 2 * LINE_COUNT)
1.16 +#define VFP_START (VISIBLE_START + LINE_MULTIPLIER * LINE_COUNT)
1.17
1.18 /* Horizontal lines, front porch end. */
1.19
1.20 @@ -48,6 +49,10 @@
1.21 /* Framebuffer properties. */
1.22
1.23 #define SCREEN_SIZE (LINE_LENGTH * LINE_COUNT)
1.24 -#define LINE_MULTIPLIER 2
1.25 +
1.26 +/* Transfer and pixel allocation properties. */
1.27 +
1.28 +#define TRANSFER_CELL_SIZE LINE_LENGTH
1.29 +#define CELL_SIZE LINE_LENGTH
1.30
1.31 #endif /* __VGA_H__ */