projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed 16bpp offsets in csprite generator (hardcoded for now)
[dosdemo]
/
src
/
demo.c
diff --git
a/src/demo.c
b/src/demo.c
index
a990d5f
..
fee1e7a
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(isalpha(c)) {
+ cs_font(fb, x, y, toupper(c) - 'A');
+ }
+ x += 14;
+ }
+}
+
static void change_screen(int idx)
{
printf("change screen %d\n", idx);
static void change_screen(int idx)
{
printf("change screen %d\n", idx);