- API: in txfRenderString, replace non-ASCII chars with ?.

Otherwise it calls abort()!

svn path=/trunk/boinc/; revision=20648
This commit is contained in:
David Anderson 2010-02-18 22:36:07 +00:00
parent 6dd7401da7
commit a60e21ce89
2 changed files with 10 additions and 0 deletions

View File

@ -518,6 +518,9 @@ void txfRenderGlyph(TexFont * txf, int c){
void txfRenderString(TexFont * txf, char *string, int len){
int i;
for (i = 0; i < len; i++) {
if (!isascii(string[i])) {
string[i] = '?';
}
txfRenderGlyph(txf, string[i]);
}
}

View File

@ -1313,3 +1313,10 @@ David 18 Feb 2010
lib/
app_ipc.cpp
gui_rpc_client_ops.cpp
David 18 Feb 2010
- API: in txfRenderString, replace non-ASCII chars with ?.
Otherwise it calls abort()!
api/
texfont.cpp