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:
af43e2a
)
added support for get(..,"width"), get(..,"height")
author
kramm
<kramm>
Sat, 10 Sep 2005 12:31:45 +0000
(12:31 +0000)
committer
kramm
<kramm>
Sat, 10 Sep 2005 12:31:45 +0000
(12:31 +0000)
pdf2swf/swfoutput.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
3861be7
..
569aef0
100644
(file)
--- a/
pdf2swf/swfoutput.cc
+++ b/
pdf2swf/swfoutput.cc
@@
-1215,6
+1215,10
@@
void* swfresult_get(gfxresult_t*gfx, char*name)
return (void*)(swf->movieSize.xmax/20);
} else if(!strcmp(name, "ymax")) {
return (void*)(swf->movieSize.ymax/20);
+ } else if(!strcmp(name, "width")) {
+ return (void*)((swf->movieSize.xmax - swf->movieSize.xmin)/20);
+ } else if(!strcmp(name, "height")) {
+ return (void*)((swf->movieSize.ymax - swf->movieSize.ymin)/20);
}
return 0;
}