X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Fdemo%2Fdemo.c;h=cd9487cd93d9b6ef6150b8aea7c3b11fc6efc3f7;hb=d76509a30e7b0ff2440538e2a06210dc64da9214;hp=0dbce6e96daa7c83273df5341ec83211541c5b78;hpb=eb43b8e3d3107c865cbb4c47b12e375ea29ea089;p=bertos.git diff --git a/examples/demo/demo.c b/examples/demo/demo.c index 0dbce6e9..cd9487cd 100644 --- a/examples/demo/demo.c +++ b/examples/demo/demo.c @@ -92,11 +92,12 @@ static void hello_world(Bitmap *bm) /* Set big font */ gfx_setFont(bm, &font_ncenB18); - text_xprintf(bm, 1, 0, STYLEF_BOLD | TEXT_FILL | TEXT_CENTER, + text_xprintf(bm, 0, 0, STYLEF_BOLD | TEXT_FILL | TEXT_CENTER, "Hello, world!"); schedule(); - - timer_delay(1000); + while (1) + if (kbd_peek()) + break; /* Restore old font */ gfx_setFont(bm, old_font);