diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-25 07:48:48 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-25 07:48:48 +0200 |
commit | e77368940afaa2bbc7bd883ef6cd25a5565a1bbd (patch) | |
tree | d05f5f399b57a249535f7d88a44abe8473db6797 /src/kernel | |
parent | 32e2ee0e675265b46338722773606467add4623b (diff) | |
download | abaos-e77368940afaa2bbc7bd883ef6cd25a5565a1bbd.tar.gz abaos-e77368940afaa2bbc7bd883ef6cd25a5565a1bbd.tar.bz2 |
fixed calculation of coordinates in text widget
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index 99a162b..b17baf4 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -215,7 +215,7 @@ static void handle_keyboard_event( keyboard_event_t *event, void *context ) } *p = '\0'; text_widget_t widget3; - text_widget_init( &widget3, (widget_t *)&desktop, 5, 5, vga->mode.x - 10 , 100, VGA_COLOR_RED, s ); + text_widget_init( &widget3, (widget_t *)&desktop, 55, 5, vga->mode.x - 65 , 100, VGA_COLOR_RED, s ); ((composite_widget_vtable_t *)desktop.vtable)->add_child( &desktop, (widget_t *)&widget3 ); // as vga_t is equals to the graphical context for now |