From 21ca4231de3cd7172850802c353e4aaffad98c7b Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 13 Dec 2001 10:15:54 +0000 Subject: [PATCH] byte order fix. --- pdf2swf/swfoutput.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 5921251..b031546 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -624,7 +624,9 @@ SWFFont::~SWFFont() } for(t=0;tdata[ptr[t]] = swf_GetTagLen(ftag)-initpos; + *(U16*)&ftag->data[ptr[t]] = + SWAP16(swf_GetTagLen(ftag)-initpos); + swflastx=0; swflasty=0; swf_SetU8(ftag,0x10); //0 fill bits, 0 linestyle bits -- 1.7.10.4