projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coding style fixes.
[bertos.git]
/
examples
/
demo
/
demo.c
diff --git
a/examples/demo/demo.c
b/examples/demo/demo.c
index 0dbce6e96daa7c83273df5341ec83211541c5b78..cd9487cd93d9b6ef6150b8aea7c3b11fc6efc3f7 100644
(file)
--- 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);
/* 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();
"Hello, world!");
schedule();
-
- timer_delay(1000);
+ while (1)
+ if (kbd_peek())
+ break;
/* Restore old font */
gfx_setFont(bm, old_font);
/* Restore old font */
gfx_setFont(bm, old_font);