From: Matthias Kramm Date: Wed, 2 Dec 2009 21:42:19 +0000 (-0800) Subject: parse centerx/centery in rescale device X-Git-Tag: version-0-9-1~221 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=705ebea8b41e13fad737b55484cd071d857982f2 parse centerx/centery in rescale device --- diff --git a/lib/devices/rescale.c b/lib/devices/rescale.c index 649601f..350dfd2 100644 --- 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);