summaryrefslogtreecommitdiff
path: root/src/drivers/video/vga.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-12 13:03:09 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-12 13:03:09 +0200
commitbd64c9d8b726a266fc452bdceef6450ac0073be8 (patch)
tree24c208284675b66dc52ee51a78b921c9e4295a41 /src/drivers/video/vga.h
parent573b82fd2d46ebca7f98e5323e9f18e593a7996f (diff)
downloadabaos-bd64c9d8b726a266fc452bdceef6450ac0073be8.tar.gz
abaos-bd64c9d8b726a266fc452bdceef6450ac0073be8.tar.bz2
added segment_size to vga mode structure, using for memcpy in Z buffer
refreshing the video memory and when allocating the Z buffer
Diffstat (limited to 'src/drivers/video/vga.h')
-rw-r--r--src/drivers/video/vga.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/video/vga.h b/src/drivers/video/vga.h
index aa842dc..0947856 100644
--- a/src/drivers/video/vga.h
+++ b/src/drivers/video/vga.h
@@ -4,6 +4,7 @@
#include <stdbool.h>
#include "string.h"
+#include "stddef.h"
#include "interrupts.h"
#include "port.h"
@@ -24,6 +25,7 @@ typedef struct {
int color_depth;
uint8_t regs[NOF_MODE_REGS];
uint8_t *segment;
+ size_t segment_size;
} vga_mode_t;
typedef struct {