git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed -b in conjunction with -z.
[swftools.git]
/
pdf2swf
/
swfoutput.cc
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
7071724
..
93f2a84
100644
(file)
--- a/
pdf2swf/swfoutput.cc
+++ b/
pdf2swf/swfoutput.cc
@@
-1728,13
+1728,7
@@
static void endshape(swfoutput*obj, int clipdepth)
if(i->shapeisempty ||
/*bbox empty?*/
(i->bboxrect.xmin == i->bboxrect.xmax &&
if(i->shapeisempty ||
/*bbox empty?*/
(i->bboxrect.xmin == i->bboxrect.xmax &&
- i->bboxrect.ymin == i->bboxrect.ymax) ||
- /*bbox outside page?*/
- (i->bboxrect.xmax <= i->min_x*20 ||
- i->bboxrect.ymax <= i->min_y*20 ||
- i->bboxrect.xmin >= i->max_x*20 ||
- i->bboxrect.ymin >= i->max_y*20)
- )
+ i->bboxrect.ymin == i->bboxrect.ymax))
{
// delete the shape again, we didn't do anything
cancelshape(obj);
{
// delete the shape again, we didn't do anything
cancelshape(obj);
@@
-2253,8
+2247,8
@@
static void drawimage(struct swfoutput*obj, int bitid, int sizex,int sizey,
m.r0 = (int)(65536*20*(p1.x-p2.x)/sizey);
m.sy = -(int)(65536*20*(p1.y-p2.y)/sizey);
m.r0 = (int)(65536*20*(p1.x-p2.x)/sizey);
m.sy = -(int)(65536*20*(p1.y-p2.y)/sizey);
- m.tx = (int)(p1.x*20);
- m.ty = (int)(p1.y*20);
+ m.tx = (int)(p1.x*20) - 10;
+ m.ty = (int)(p1.y*20) - 10;
/* shape */
myshapeid = ++i->currentswfid;
/* shape */
myshapeid = ++i->currentswfid;