From: kramm Date: Mon, 30 Oct 2006 09:51:03 +0000 (+0000) Subject: fixed clipping X-Git-Tag: release-0-8-0~151 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=aa37922a3c87525f2ecb399e9e4a4f33c13251da fixed clipping --- diff --git a/lib/xpdf/GFXOutputDev.h b/lib/xpdf/GFXOutputDev.h index 776ad77..d828242 100644 --- a/lib/xpdf/GFXOutputDev.h +++ b/lib/xpdf/GFXOutputDev.h @@ -37,7 +37,7 @@ public: gfxdevice_t* device; // Constructor. - GFXOutputDev::GFXOutputDev(parameter_t*p); + GFXOutputDev(parameter_t*p); void setDevice(gfxdevice_t*dev); // Destructor. @@ -189,6 +189,11 @@ public: char* substitutesource[256]; int substitutepos; + /* upper left corner of clipping rectangle (cropbox)- needs to be + added to all drawing coordinates to give the impression that all + pages start at (0,0)*/ + int clipmovex,clipmovey; + int user_movex,user_movey; int user_clipx1,user_clipx2,user_clipy1,user_clipy2;