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:
f9641f3
)
fixed compile error
author
kramm
<kramm>
Wed, 12 Nov 2008 10:39:38 +0000
(10:39 +0000)
committer
kramm
<kramm>
Wed, 12 Nov 2008 10:39:38 +0000
(10:39 +0000)
src/pdf2swf.c
patch
|
blob
|
history
diff --git
a/src/pdf2swf.c
b/src/pdf2swf.c
index
8c4d8a5
..
e68bb7c
100644
(file)
--- a/
src/pdf2swf.c
+++ b/
src/pdf2swf.c
@@
-42,6
+42,7
@@
#include "../lib/devices/swf.h"
#include "../lib/devices/polyops.h"
#include "../lib/devices/record.h"
#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"
#include "../lib/pdf/pdf.h"
#include "../lib/log.h"
@@
-185,12
+186,12
@@
int args_callback_option(char*name,char*val) {
}
else if (!strcmp(name, "X"))
{
}
else if (!strcmp(name, "X"))
{
- maxwidth = atoi(value);
+ maxwidth = atoi(val);
return 1;
}
else if (!strcmp(name, "Y"))
{
return 1;
}
else if (!strcmp(name, "Y"))
{
- maxheight = atoi(value);
+ maxheight = atoi(val);
return 1;
}
else if (!strcmp(name, "q"))
return 1;
}
else if (!strcmp(name, "q"))
@@
-600,7
+601,7
@@
gfxdevice_t*create_output_device()
}
if(maxwidth || maxheight) {
}
if(maxwidth || maxheight) {
- gfxdevice_rescale_init(&rescale, out, maxwidth, maxheight);
+ gfxdevice_rescale_init(&rescale, out, maxwidth, maxheight, 0);
out = &rescale;
}
out = &rescale;
}