From 95292027625e905080f37f585402f49ec49bc97f Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 22 Jul 2017 09:14:51 +0200 Subject: moved color handling to video driver from generic VGA driver --- src/drivers/video/video.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/drivers/video/video.h') diff --git a/src/drivers/video/video.h b/src/drivers/video/video.h index d17a51d..6da8e60 100644 --- a/src/drivers/video/video.h +++ b/src/drivers/video/video.h @@ -46,4 +46,22 @@ bool video_supports_mode( void *obj, const video_mode_t mode ); bool video_set_mode( void *obj, const video_mode_t mode ); bool video_switch_mode( void *obj, const video_mode_t *mode ); +typedef struct { + int R; + int G; + int B; +} video_rgb_color_t; + +extern const video_rgb_color_t VIDEO_RGB_COLOR_BLACK; +extern const video_rgb_color_t VIDEO_RGB_COLOR_BLUE; +extern const video_rgb_color_t VIDEO_RGB_COLOR_GREEN; +extern const video_rgb_color_t VIDEO_RGB_COLOR_CYAN; +extern const video_rgb_color_t VIDEO_RGB_COLOR_RED; +extern const video_rgb_color_t VIDEO_RGB_COLOR_MAGENTA; +extern const video_rgb_color_t VIDEO_RGB_COLOR_BROWN; +extern const video_rgb_color_t VIDEO_RGB_COLOR_GRAY; +extern const video_rgb_color_t VIDEO_RGB_COLOR_WHITE; + +video_rgb_color_t video_make_rgb_color( const int R, const int G, const int B ); + #endif // VIDEO_H -- cgit v1.2.3-54-g00ecf