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:
05e298b
)
zoom is now a double
author
kramm
<kramm>
Mon, 16 May 2005 12:31:10 +0000
(12:31 +0000)
committer
kramm
<kramm>
Mon, 16 May 2005 12:31:10 +0000
(12:31 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
0475ab2
..
0769800
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-90,7
+90,7
@@
static int pagepos = 0;
/* config */
static double caplinewidth = 3.0;
/* config */
static double caplinewidth = 3.0;
-static int zoom = 72; /* xpdf: 86 */
+static double zoom = 72; /* xpdf: 86 */
static int forceType0Fonts = 1;
static void printInfoString(Dict *infoDict, char *key, char *fmt);
static int forceType0Fonts = 1;
static void printInfoString(Dict *infoDict, char *key, char *fmt);
@@
-2210,7
+2210,7
@@
void pdfswf_setparameter(char*name, char*value)
caplinewidth = atof(value);
} else if(!strcmp(name, "zoom")) {
char buf[80];
caplinewidth = atof(value);
} else if(!strcmp(name, "zoom")) {
char buf[80];
- zoom = atoi(value);
+ zoom = atof(value);
sprintf(buf, "%f", (double)jpeg_dpi/(double)zoom);
swfoutput_setparameter("jpegsubpixels", buf);
sprintf(buf, "%f", (double)ppm_dpi/(double)zoom);
sprintf(buf, "%f", (double)jpeg_dpi/(double)zoom);
swfoutput_setparameter("jpegsubpixels", buf);
sprintf(buf, "%f", (double)ppm_dpi/(double)zoom);