From 6fd24e6073d384d8eebf6e6e7b9cff1682fa51b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sat, 13 Jul 2013 13:38:24 +0200 Subject: [PATCH] Shape viewer - Fixed strokes for Shape1,2,3 (lineStyle1) --- .../decompiler/flash/types/shaperecords/SHAPERECORD.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/types/shaperecords/SHAPERECORD.java b/trunk/src/com/jpexs/decompiler/flash/types/shaperecords/SHAPERECORD.java index 56b415552..e6d25f063 100644 --- a/trunk/src/com/jpexs/decompiler/flash/types/shaperecords/SHAPERECORD.java +++ b/trunk/src/com/jpexs/decompiler/flash/types/shaperecords/SHAPERECORD.java @@ -89,7 +89,6 @@ public abstract class SHAPERECORD implements Cloneable, NeedsCharacters { public void draw(int startX, int startY, Graphics2D g, int shapeNum) { AffineTransform oldAf = g.getTransform(); AffineTransform trans20 = AffineTransform.getScaleInstance(1 / DESCALE, 1 / DESCALE); - //g.setTransform(trans20); boolean ok = false; if (shapeNum == 4) { if (lineStyle2 == null) { @@ -131,6 +130,11 @@ public abstract class SHAPERECORD implements Cloneable, NeedsCharacters { if (lineStyle == null) { ok = false; } else { + if (shapeNum == 1 || shapeNum == 2) { + g.setPaint(lineStyle.color.toColor()); + } else /*shapeNum == 3*/ { + g.setPaint(lineStyle.colorA.toColor()); + } g.setStroke(new BasicStroke(lineStyle.width / DESCALE, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); ok = true; }