From 9a6ff3ac4a2e0a1899b4e39d43022241f105f5b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Mon, 26 Aug 2013 19:29:43 +0200 Subject: [PATCH] Issue #292 Fonts preview is always black on white --- trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java b/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java index 2a0010d83..1a64562b9 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java @@ -2974,7 +2974,13 @@ public class MainFrame extends AppRibbonFrame implements ActionListener, TreeSel sos2.writeUI8(0); sos2.writeUI8(swf.frameRate); sos2.writeUI16(100); //framecnt - sos2.writeTag(new SetBackgroundColorTag(null, new RGB(View.swfBackgroundColor))); + + Color backgroundColor=View.swfBackgroundColor; + if (tagObj instanceof FontTag) { //Fonts are always black on white + backgroundColor = Color.white; + } + + sos2.writeTag(new SetBackgroundColorTag(null, new RGB(backgroundColor))); if (tagObj instanceof FrameNode) { FrameNode fn = (FrameNode) tagObj;