diff options
Diffstat (limited to 'src/gui/text_widget.c')
-rw-r--r-- | src/gui/text_widget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text_widget.c b/src/gui/text_widget.c index 3aa09cc..d9c96e0 100644 --- a/src/gui/text_widget.c +++ b/src/gui/text_widget.c @@ -45,7 +45,8 @@ void text_widget_draw( void *obj, graphics_context_t *context ) ((widget_t *)widget)->vtable->model_to_screen( widget, &x, &y ); for( const char *p = widget->s; *p != '\0'; p++ ) { - vga_draw_char( context, *p, x + w, y + h, + ((video_vtable_t *)(context->base.vtable))->draw_char( + context, *p, x + w, y + h, ((widget_t *)widget)->background_color, VIDEO_RGB_COLOR_WHITE ); w += 9; |