X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdemo.c;h=e2b815526acd301af1fbf942f4efeeb68bd8789c;hp=fee1e7a37864548278dcfa518acff5c73aed02c7;hb=feef1d0ecc88f41adbd4781767afd05a0f381f85;hpb=73f97e0d9dc83cad4aa7b53d900ea28390afed4f diff --git a/src/demo.c b/src/demo.c index fee1e7a..e2b8155 100644 --- a/src/demo.c +++ b/src/demo.c @@ -169,10 +169,10 @@ 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'); + if(c > ' ' && c < 128) { + cs_font(fb, x, y, c - ' '); } - x += 14; + x += 9; } }