summaryrefslogtreecommitdiff
path: root/src/drivers/video/vga.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/video/vga.h')
-rw-r--r--src/drivers/video/vga.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/drivers/video/vga.h b/src/drivers/video/vga.h
index bdc15cf..aa842dc 100644
--- a/src/drivers/video/vga.h
+++ b/src/drivers/video/vga.h
@@ -42,11 +42,7 @@ typedef struct {
port8_t attribute_controller_reset_port;
vga_mode_t mode;
bool use_z_buffer;
- // TODO: the Z-buffer should actually be allocated dynamically
- // depending on the current mode, for now it's a static buffer
- // able to store the biggest resolution, being planar
- // 320x200x8 aka 64k
- uint8_t zbuffer[65535];
+ uint8_t *zbuffer;
// stores either the address to the beginning of the segment
// (real mapped I/O memory or the beginning of the Z buffer
uint8_t *base_addr;