From: kramm Date: Fri, 22 Oct 2004 15:07:20 +0000 (+0000) Subject: * changed logging interface X-Git-Tag: release-0-6-3~279 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=4626566319176549cdc7173d65d7980c15ea74fa;p=swftools.git * changed logging interface * movex/movey are now passed in pixels instead of twips --- diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index b8b96e9..dcba007 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -1295,7 +1295,7 @@ void swfoutput_setfont(struct swfoutput*obj, char*fontid, char*filename) swf_FontSetID(swffont, ++i->currentswfid); - if(screenloglevel >= LOGLEVEL_DEBUG) { + if(getScreenLogLevel() >= LOGLEVEL_DEBUG) { // print font information msg(" Font %s (%s)",swffont->name, filename); msg(" | ID: %d", swffont->id); @@ -1415,8 +1415,8 @@ void swfoutput_newpage(struct swfoutput*obj, int pageNum, int movex, int movey, endpage(obj); swf_GetMatrix(0, &i->page_matrix); - i->page_matrix.tx = movex; - i->page_matrix.ty = movey; + i->page_matrix.tx = movex*20; + i->page_matrix.ty = movey*20; for(i->depth--;i->depth>=i->startdepth;i->depth--) { i->tag = swf_InsertTag(i->tag,ST_REMOVEOBJECT2);