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
fee1e7a
..
e2b8155
100644
(file)
--- 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;
}
}