summaryrefslogtreecommitdiff
path: root/src/drivers/video/vga.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-22 09:14:51 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-22 09:14:51 +0200
commit95292027625e905080f37f585402f49ec49bc97f (patch)
treefe056d9bc402a38e47fe96afef2376f3f2653bb8 /src/drivers/video/vga.h
parent1ac14d73950798e9a867778a2943adfe88557e61 (diff)
downloadabaos-95292027625e905080f37f585402f49ec49bc97f.tar.gz
abaos-95292027625e905080f37f585402f49ec49bc97f.tar.bz2
moved color handling to video driver from generic VGA driver
Diffstat (limited to 'src/drivers/video/vga.h')
-rw-r--r--src/drivers/video/vga.h26
1 files changed, 4 insertions, 22 deletions
diff --git a/src/drivers/video/vga.h b/src/drivers/video/vga.h
index fed47a1..6934856 100644
--- a/src/drivers/video/vga.h
+++ b/src/drivers/video/vga.h
@@ -53,28 +53,10 @@ void vga_print_info( void *obj );
bool vga_switch_mode( void *obj, const video_mode_t *mode );
-typedef struct {
- int R;
- int G;
- int B;
-} vga_color_t;
-
-extern const vga_color_t VGA_COLOR_BLACK;
-extern const vga_color_t VGA_COLOR_BLUE;
-extern const vga_color_t VGA_COLOR_GREEN;
-extern const vga_color_t VGA_COLOR_CYAN;
-extern const vga_color_t VGA_COLOR_RED;
-extern const vga_color_t VGA_COLOR_MAGENTA;
-extern const vga_color_t VGA_COLOR_BROWN;
-extern const vga_color_t VGA_COLOR_LIGHT_GREY;
-extern const vga_color_t VGA_COLOR_WHITE;
-
-vga_color_t vga_make_RGB( int R, int G, int B );
-
-void vga_set_pixel( vga_t *vga, const int x, const int y, const vga_color_t color );
-void vga_draw_rectangle( vga_t *vga, const int x, const int y, const int w, const int h, const vga_color_t color );
-void vga_clear_screen( vga_t *vga, const vga_color_t color );
-void vga_draw_char( vga_t *vga, const unsigned char c, const int x, const int y, const vga_color_t background, const vga_color_t foreground );
+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 );