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:
7306cea
)
parse centerx/centery in rescale device
author
Matthias Kramm
<kramm@quiss.org>
Wed, 2 Dec 2009 21:42:19 +0000
(13:42 -0800)
committer
Matthias Kramm
<kramm@quiss.org>
Wed, 2 Dec 2009 21:42:19 +0000
(13:42 -0800)
lib/devices/rescale.c
patch
|
blob
|
history
diff --git
a/lib/devices/rescale.c
b/lib/devices/rescale.c
index
649601f
..
350dfd2
100644
(file)
--- a/
lib/devices/rescale.c
+++ b/
lib/devices/rescale.c
@@
-121,6
+121,12
@@
int rescale_setparameter(gfxdevice_t*dev, const char*key, const char*value)
if(!strcmp(key, "keepratio")) {
i->keepratio = atoi(value);
return 1;
+ } else if(!strcmp(key, "centerx")) {
+ i->centerx = atoi(value);
+ return 1;
+ } else if(!strcmp(key, "centery")) {
+ i->centery = atoi(value);
+ return 1;
} else {
if(i->out) {
return i->out->setparameter(i->out,key,value);