projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
better font
[dosdemo]
/
src
/
demo.c
diff --git
a/src/demo.c
b/src/demo.c
index
a990d5f
..
e2b8155
100644
(file)
--- a/
src/demo.c
+++ b/
src/demo.c
@@
-164,6
+164,18
@@
void draw_mouse_pointer(uint16_t *fb)
}
}
+void cs_puts(void *fb, int x, int y, const char *str)
+{
+ while(*str) {
+ int c = *str++;
+
+ if(c > ' ' && c < 128) {
+ cs_font(fb, x, y, c - ' ');
+ }
+ x += 9;
+ }
+}
+
static void change_screen(int idx)
{
printf("change screen %d\n", idx);