X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdemo.c;h=fee1e7a37864548278dcfa518acff5c73aed02c7;hp=a990d5fb6fc7a1b752c72222d03fc0231e7c402d;hb=73f97e0d9dc83cad4aa7b53d900ea28390afed4f;hpb=4b1cef5f03023a4977c1a0dd0e7464fd4cc1044c diff --git a/src/demo.c b/src/demo.c index a990d5f..fee1e7a 100644 --- 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);