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:
8f24aec
)
fixed linewidth rounding
author
kramm
<kramm>
Wed, 12 Oct 2005 18:31:36 +0000
(18:31 +0000)
committer
kramm
<kramm>
Wed, 12 Oct 2005 18:31:36 +0000
(18:31 +0000)
pdf2swf/swfoutput.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
4abead9
..
8eaacd3
100644
(file)
--- a/
pdf2swf/swfoutput.cc
+++ b/
pdf2swf/swfoutput.cc
@@
-1316,14
+1316,17
@@
static void swfoutput_setstrokecolor(gfxdevice_t* dev, U8 r, U8 g, U8 b, U8 a)
i->strokergb.a = a;
}
i->strokergb.a = a;
}
+//#define ROUND_UP 19
+//#define ROUND_UP 10
+
static void swfoutput_setlinewidth(gfxdevice_t*dev, double _linewidth)
{
swfoutput_internal*i = (swfoutput_internal*)dev->internal;
static void swfoutput_setlinewidth(gfxdevice_t*dev, double _linewidth)
{
swfoutput_internal*i = (swfoutput_internal*)dev->internal;
- if(i->linewidth == (U16)(_linewidth*20+19))
+ if(i->linewidth == (U16)(_linewidth*20+19.0/20.0))
return;
if(i->shapeid>=0)
endshape(dev);
return;
if(i->shapeid>=0)
endshape(dev);
- i->linewidth = (U16)(_linewidth*20+19);
+ i->linewidth = (U16)(_linewidth*20+19.0/20.0);
}
}