Fixed warning and simplified error output (BTW if this should stay, it should probably

go into the syslog).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16505 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-02-26 16:34:16 +00:00
parent 8152e71214
commit 348837ad2f

View File

@ -222,12 +222,10 @@ AGGTextRenderer::RenderString(const char* string,
}*/
const agg::glyph_cache* glyph = fFontCache.glyph(charCode);
if (glyph == NULL) {
fprintf(stderr, "failed to load glyph for 0x%04lx (%c)\n", charCode,
isprint(charCode) ? (char)charCode : '-');
if (!glyph) {
if (charCode >= 0x20 && charCode < 0x80)
fprintf(stderr, "failed to load glyph for '%c'\n", (char)charCode);
else
fprintf(stderr, "failed to load glyph for 0x%04x\n", charCode);
continue;
}