From 705ebea8b41e13fad737b55484cd071d857982f2 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Wed, 2 Dec 2009 13:42:19 -0800 Subject: [PATCH] parse centerx/centery in rescale device --- lib/devices/rescale.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 1.7.10.4