summaryrefslogtreecommitdiff
path: root/src/gui/text_widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text_widget.c')
-rw-r--r--src/gui/text_widget.c4
1 files changed, 2 insertions, 2 deletions
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;