parse centerx/centery in rescale device
authorMatthias Kramm <kramm@quiss.org>
Wed, 2 Dec 2009 21:42:19 +0000 (13:42 -0800)
committerMatthias Kramm <kramm@quiss.org>
Wed, 2 Dec 2009 21:42:19 +0000 (13:42 -0800)
lib/devices/rescale.c

index 649601f..350dfd2 100644 (file)
@@ -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);