Mercurial > hg > forks > pwpunix
view nykyaeka/font.c @ 43:093315d84a22
Add a small delay in SDL audio pseudo-loopflush function to avoid tightlooping in prod main loops (explained better in the added comment.)
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 May 2010 05:07:33 +0300 |
parents | acb5694e93d9 |
children |
line wrap: on
line source
#include "pwpdemo.h" #include "font.h" void writetext(char*txt,unsigned char*font) { int wdt=0; int z=*txt-'A',a; while(z) { if(*font==0)z--; font++; } while((a=*font)) { char*d= for(;a;a>>=1) { d+= } } }