From ac23e311c5dc3157a86014bc5abd4aaa83abf38d Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 12 Mar 2008 19:08:22 +0000 Subject: [PATCH] two more logging messages --- lib/devices/swf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/devices/swf.c b/lib/devices/swf.c index ced14e9..4f3b970 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -727,6 +727,10 @@ static int drawchar(gfxdevice_t*dev, SWFFONT *swffont, int charid, float x, floa p.y = (SCOORD)((- x * i->fontmatrix.r0/65536.0 + y * i->fontmatrix.sx/65536.0)*det); RGBA rgba = *(RGBA*)col; + + msg(" Drawing char %d in font %d at %d,%d in color %02x%02x%02x%02x", + charid, swffont->id, p.x,p.y, rgba.r, rgba.g, rgba.b, rgba.a); + putcharacter(dev, swffont->id, charid,p.x,p.y,i->current_font_size, rgba); swf_FontUseGlyph(swffont, charid); return 1; @@ -2563,8 +2567,10 @@ static void swf_switchfont(gfxdevice_t*dev, const char*fontid) static void swf_drawchar(gfxdevice_t*dev, gfxfont_t*font, int glyph, gfxcolor_t*color, gfxmatrix_t*matrix) { swfoutput_internal*i = (swfoutput_internal*)dev->internal; - if(!font) + if(!font) { + msg(" swf_drawchar called (glyph %d) without font", glyph); return; + } if(!i->swffont || !i->swffont->name || strcmp((char*)i->swffont->name,font->id)) // not equal to current font { -- 1.7.10.4