1.1 --- a/examples/vga-timer/vga.h Tue Oct 23 00:36:31 2018 +0200
1.2 +++ b/examples/vga-timer/vga.h Tue Oct 23 00:38:01 2018 +0200
1.3 @@ -20,7 +20,7 @@
1.4 #ifndef __VGA_H__
1.5 #define __VGA_H__
1.6
1.7 -#define LINE_LENGTH 80 /* pixels */
1.8 +#define LINE_LENGTH 80 /* pixels */
1.9 #define LINE_COUNT 256 /* distinct display lines */
1.10
1.11 #define ZERO_LENGTH 1 /* pixels */
1.12 @@ -45,11 +45,9 @@
1.13
1.14 #define VSYNC_END 622
1.15
1.16 -#define SCREEN_BASE 256
1.17 -#define SCREEN_SIZE (40 * 1024)
1.18 -#define SCREEN_LIMIT (SCREEN_BASE + SCREEN_SIZE)
1.19 +/* Framebuffer properties. */
1.20
1.21 -#define SCREEN_BASE_KSEG0 (KSEG0_BASE + SCREEN_BASE)
1.22 -#define SCREEN_LIMIT_KSEG0 (KSEG0_BASE + SCREEN_LIMIT)
1.23 +#define SCREEN_SIZE (LINE_LENGTH * LINE_COUNT)
1.24 +#define LINE_MULTIPLIER 2
1.25
1.26 #endif /* __VGA_H__ */