summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-25 07:48:48 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-25 07:48:48 +0200
commite77368940afaa2bbc7bd883ef6cd25a5565a1bbd (patch)
treed05f5f399b57a249535f7d88a44abe8473db6797 /src/kernel
parent32e2ee0e675265b46338722773606467add4623b (diff)
downloadabaos-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.c2
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