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:
parent
8152e71214
commit
348837ad2f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user