summaryrefslogtreecommitdiff
path: root/src/gui/widget.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-22 16:14:14 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-22 16:14:14 +0200
commit752ff17265f23d4fa9084368d2a90f66521a98e2 (patch)
tree2acad7fc117add49064f261cfbadcd341c7406b6 /src/gui/widget.c
parent95292027625e905080f37f585402f49ec49bc97f (diff)
downloadabaos-752ff17265f23d4fa9084368d2a90f66521a98e2.tar.gz
abaos-752ff17265f23d4fa9084368d2a90f66521a98e2.tar.bz2
separated video driver in a virtual video driver and a specific
VGA video driver
Diffstat (limited to 'src/gui/widget.c')
-rw-r--r--src/gui/widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widget.c b/src/gui/widget.c
index 70e0dbc..cac4dfb 100644
--- a/src/gui/widget.c
+++ b/src/gui/widget.c
@@ -37,7 +37,7 @@ void widget_draw( void *obj, graphics_context_t *context )
widget->vtable->model_to_screen( widget, &x, &y );
- vga_draw_rectangle( context, x, y, widget->w, widget->h,
+ ((video_vtable_t *)(context->base.vtable))->draw_rectangle( context, x, y, widget->w, widget->h,
widget->background_color );
}