From 752ff17265f23d4fa9084368d2a90f66521a98e2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 22 Jul 2017 16:14:14 +0200 Subject: separated video driver in a virtual video driver and a specific VGA video driver --- src/drivers/video/vga.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/drivers/video/vga.h') diff --git a/src/drivers/video/vga.h b/src/drivers/video/vga.h index 6934856..faafd8e 100644 --- a/src/drivers/video/vga.h +++ b/src/drivers/video/vga.h @@ -33,7 +33,6 @@ typedef struct { port8_t attribute_controller_read_port; port8_t attribute_controller_write_port; port8_t attribute_controller_reset_port; - vga_mode_t *mode; bool use_z_buffer; uint8_t *zbuffer; // stores either the address to the beginning of the segment @@ -53,12 +52,12 @@ void vga_print_info( void *obj ); bool vga_switch_mode( void *obj, const video_mode_t *mode ); -void vga_set_pixel( vga_t *vga, const int x, const int y, const video_rgb_color_t color ); -void vga_draw_rectangle( vga_t *vga, const int x, const int y, const int w, const int h, const video_rgb_color_t color ); -void vga_clear_screen( vga_t *vga, const video_rgb_color_t color ); -void vga_draw_char( vga_t *vga, const unsigned char c, const int x, const int y, const video_rgb_color_t background, const video_rgb_color_t foreground ); -void vga_wait_for_retrace( vga_t *vga ); -void vga_use_z_buffer( vga_t *vga, bool use ); -void vga_refresh( vga_t *vga ); +void vga_set_pixel( void *, const int x, const int y, const video_rgb_color_t color ); +void vga_draw_rectangle( void *, const int x, const int y, const int w, const int h, const video_rgb_color_t color ); +void vga_clear_screen( void *, const video_rgb_color_t color ); +void vga_draw_char( void *, const unsigned char c, const int x, const int y, const video_rgb_color_t background, const video_rgb_color_t foreground ); +void vga_wait_for_retrace( void * ); +void vga_use_z_buffer( void *, bool use ); +void vga_refresh( void * ); #endif // VGA_H -- cgit v1.2.3-54-g00ecf