#include "../lib/devices/swf.h"
#include "../lib/devices/polyops.h"
#include "../lib/devices/record.h"
+#include "../lib/devices/rescale.h"
#include "../lib/pdf/pdf.h"
#include "../lib/log.h"
}
else if (!strcmp(name, "X"))
{
- maxwidth = atoi(value);
+ maxwidth = atoi(val);
return 1;
}
else if (!strcmp(name, "Y"))
{
- maxheight = atoi(value);
+ maxheight = atoi(val);
return 1;
}
else if (!strcmp(name, "q"))
}
if(maxwidth || maxheight) {
- gfxdevice_rescale_init(&rescale, out, maxwidth, maxheight);
+ gfxdevice_rescale_init(&rescale, out, maxwidth, maxheight, 0);
out = &rescale;
}