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:
4f1d571
)
Fixed a bug which caused wrong initialization of matrices.
author
kramm
<kramm>
Tue, 23 Oct 2001 16:29:58 +0000
(16:29 +0000)
committer
kramm
<kramm>
Tue, 23 Oct 2001 16:29:58 +0000
(16:29 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
840b04e
..
c1d9548
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-497,7
+497,7
@@
void SWFOutputDev::stroke(GfxState *state)
GfxPath * path = state->getPath();
struct swfmatrix m;
m.m11 = 1; m.m21 = 0; m.m22 = 1;
GfxPath * path = state->getPath();
struct swfmatrix m;
m.m11 = 1; m.m21 = 0; m.m22 = 1;
- m.m21 = 0; m.m13 = 0; m.m23 = 0;
+ m.m12 = 0; m.m13 = 0; m.m23 = 0;
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_setdrawmode(&output, DRAWMODE_STROKE);
swfoutput_drawpath(&output, outline, &m);
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_setdrawmode(&output, DRAWMODE_STROKE);
swfoutput_drawpath(&output, outline, &m);
@@
-508,7
+508,7
@@
void SWFOutputDev::fill(GfxState *state)
GfxPath * path = state->getPath();
struct swfmatrix m;
m.m11 = 1; m.m21 = 0; m.m22 = 1;
GfxPath * path = state->getPath();
struct swfmatrix m;
m.m11 = 1; m.m21 = 0; m.m22 = 1;
- m.m21 = 0; m.m13 = 0; m.m23 = 0;
+ m.m12 = 0; m.m13 = 0; m.m23 = 0;
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_setdrawmode(&output, DRAWMODE_FILL);
swfoutput_drawpath(&output, outline, &m);
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_setdrawmode(&output, DRAWMODE_FILL);
swfoutput_drawpath(&output, outline, &m);
@@
-519,7
+519,7
@@
void SWFOutputDev::eoFill(GfxState *state)
GfxPath * path = state->getPath();
struct swfmatrix m;
m.m11 = 1; m.m21 = 0; m.m22 = 1;
GfxPath * path = state->getPath();
struct swfmatrix m;
m.m11 = 1; m.m21 = 0; m.m22 = 1;
- m.m21 = 0; m.m13 = 0; m.m23 = 0;
+ m.m12 = 0; m.m13 = 0; m.m23 = 0;
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_setdrawmode(&output, DRAWMODE_EOFILL);
swfoutput_drawpath(&output, outline, &m);
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_setdrawmode(&output, DRAWMODE_EOFILL);
swfoutput_drawpath(&output, outline, &m);
@@
-529,8
+529,9
@@
void SWFOutputDev::clip(GfxState *state)
logf("<debug> clip\n");
GfxPath * path = state->getPath();
struct swfmatrix m;
logf("<debug> clip\n");
GfxPath * path = state->getPath();
struct swfmatrix m;
- m.m11 = 1; m.m21 = 0; m.m22 = 1;
- m.m21 = 0; m.m13 = 0; m.m23 = 0;
+ m.m11 = 1; m.m22 = 1;
+ m.m12 = 0; m.m21 = 0;
+ m.m13 = 0; m.m23 = 0;
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_startclip(&output, outline, &m);
clipping[clippos] = 1;
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_startclip(&output, outline, &m);
clipping[clippos] = 1;
@@
-541,7
+542,7
@@
void SWFOutputDev::eoClip(GfxState *state)
GfxPath * path = state->getPath();
struct swfmatrix m;
m.m11 = 1; m.m21 = 0; m.m22 = 1;
GfxPath * path = state->getPath();
struct swfmatrix m;
m.m11 = 1; m.m21 = 0; m.m22 = 1;
- m.m21 = 0; m.m13 = 0; m.m23 = 0;
+ m.m12 = 0; m.m13 = 0; m.m23 = 0;
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_startclip(&output, outline, &m);
clipping[clippos] = 1;
T1_OUTLINE*outline = gfxPath_to_T1_OUTLINE(state, path);
swfoutput_startclip(&output, outline, &m);
clipping[clippos] = 1;