git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fce71f
)
fixed custom clipping
author
kramm
<kramm>
Sun, 16 Apr 2006 13:38:23 +0000
(13:38 +0000)
committer
kramm
<kramm>
Sun, 16 Apr 2006 13:38:23 +0000
(13:38 +0000)
pdf2swf/pdf2swf.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/pdf2swf.cc
b/pdf2swf/pdf2swf.cc
index
84bd1fe
..
5510226
100644
(file)
--- a/
pdf2swf/pdf2swf.cc
+++ b/
pdf2swf/pdf2swf.cc
@@
-568,7
+568,11
@@
int main(int argn, char *argv[])
height += ymax[y];
ymax[y] = height;
}
- dev_output_startframe(swf, width, height);
+ if(custom_clip) {
+ dev_output_startframe(swf, clip_x2 - clip_x1, clip_y2 - clip_y1);
+ } else {
+ dev_output_startframe(swf, width, height);
+ }
for(t=0;t<pagenum;t++) {
int x = t%xnup;
int y = t/xnup;