aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/image
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-25 19:48:01 +0000
committerEugene Sandulenko2010-10-13 00:00:41 +0000
commitd7c6d615bbf62db0fcf62572d2e25ae8351325fc (patch)
tree1d1c43b3f3f5fabc069015a7e35a1e91885a1090 /engines/sword25/gfx/image
parent7c1b37e150e154a8259e8bc820c6af3ae2a5e7c9 (diff)
downloadscummvm-rg350-d7c6d615bbf62db0fcf62572d2e25ae8351325fc.tar.gz
scummvm-rg350-d7c6d615bbf62db0fcf62572d2e25ae8351325fc.tar.bz2
scummvm-rg350-d7c6d615bbf62db0fcf62572d2e25ae8351325fc.zip
SWORD25: Fixed vector renderer. Yay!
svn-id: r53376
Diffstat (limited to 'engines/sword25/gfx/image')
-rw-r--r--engines/sword25/gfx/image/vectorimage.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/sword25/gfx/image/vectorimage.cpp b/engines/sword25/gfx/image/vectorimage.cpp
index bd67ee793b..9c2060f5e8 100644
--- a/engines/sword25/gfx/image/vectorimage.cpp
+++ b/engines/sword25/gfx/image/vectorimage.cpp
@@ -414,14 +414,6 @@ bool VectorImage::parseDefineShape(uint shapeType, SWFBitStream &bs) {
numLineBits = 0;
}
- if (stateNewStyles) {
- // An dieser Stelle werden in Flash die alten Style-Definitionen verworfen und mit den neuen überschrieben.
- // Es wird ein neues Element begonnen.
- _elements.resize(_elements.size() + 1);
- if (!parseStyles(shapeType, bs, numFillBits, numLineBits))
- return false;
- }
-
// Ein neuen Pfad erzeugen, es sei denn, es wurden nur neue Styles definiert
if (stateLineStyle || stateFillStyle0 || stateFillStyle1 || stateMoveTo) {
// Store previous curve if any
@@ -436,6 +428,14 @@ bool VectorImage::parseDefineShape(uint shapeType, SWFBitStream &bs) {
bez[0].y3 = curY;
bezNodes = 0;
}
+
+ if (stateNewStyles) {
+ // An dieser Stelle werden in Flash die alten Style-Definitionen verworfen und mit den neuen überschrieben.
+ // Es wird ein neues Element begonnen.
+ _elements.resize(_elements.size() + 1);
+ if (!parseStyles(shapeType, bs, numFillBits, numLineBits))
+ return false;
+ }
}
} else {
// Edge Record