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/gui/text_widget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/text_widget.c') diff --git a/src/gui/text_widget.c b/src/gui/text_widget.c index 5e468c7..3aa09cc 100644 --- a/src/gui/text_widget.c +++ b/src/gui/text_widget.c @@ -18,7 +18,7 @@ static text_widget_vtable_t const text_widget_vtable = { text_widget_set_text }; -void text_widget_init( text_widget_t *widget, widget_t *parent, const int x, const int y, const int w, const int h, const vga_color_t background_color, const char *s ) +void text_widget_init( text_widget_t *widget, widget_t *parent, const int x, const int y, const int w, const int h, const video_rgb_color_t background_color, const char *s ) { memset( widget, 0, sizeof( text_widget_t ) ); @@ -47,7 +47,7 @@ void text_widget_draw( void *obj, graphics_context_t *context ) for( const char *p = widget->s; *p != '\0'; p++ ) { vga_draw_char( context, *p, x + w, y + h, ((widget_t *)widget)->background_color, - VGA_COLOR_WHITE ); + VIDEO_RGB_COLOR_WHITE ); w += 9; if( w >= ((widget_t *)widget)->w - 10 ) { h += 16; -- cgit v1.2.3-54-g00ecf