From: luukkainen Date: Wed, 5 Feb 2014 11:00:52 +0000 (+0000) Subject: Changed AlphaComposite SRC_ATOP to SRC_OVER. This is much faster to render. X-Git-Tag: 1.8.1~144 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=0e41d65d70be20dc6ae3e0cb29a599f4ce2314bf;p=simantics%2Fsysdyn.git Changed AlphaComposite SRC_ATOP to SRC_OVER. This is much faster to render. refs #4699 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28777 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/HoverShapeNode.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/HoverShapeNode.java index e7e6e810..3cc5b2ff 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/HoverShapeNode.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/HoverShapeNode.java @@ -43,7 +43,7 @@ public class HoverShapeNode extends ShapeNode implements ISelectionPainterNode { if (selected) { float lineWidth = oldStroke.getLineWidth() * 5; g2d.setStroke(new BasicStroke(lineWidth < 1.0f ? lineWidth : 1.0f)); - g2d.setComposite(AlphaComposite.SrcAtop.derive(0.5f)); + g2d.setComposite(AlphaComposite.SrcOver.derive(0.5f)); g2d.setColor(Color.RED); g2d.draw(s); g2d.setColor(oldColor); diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/ModuleNode.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/ModuleNode.java index 73afad88..f2431be5 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/ModuleNode.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/ModuleNode.java @@ -68,7 +68,7 @@ public class ModuleNode extends SysdynTextNode { boolean selected = NodeUtil.isSelected(this, 1); if (selected && showsSelection()) { Composite oc = g.getComposite(); - g.setComposite(AlphaComposite.SrcAtop.derive(0.5f)); + g.setComposite(AlphaComposite.SrcOver.derive(0.5f)); g.setColor(Color.RED); float bw = borderWidth; diff --git a/org.simantics.sysdyn.ui/sysdyn.product b/org.simantics.sysdyn.ui/sysdyn.product index ebda30ea..36587b8c 100644 --- a/org.simantics.sysdyn.ui/sysdyn.product +++ b/org.simantics.sysdyn.ui/sysdyn.product @@ -14,8 +14,7 @@ -fixerrors ---launcher.XXMaxPermSize 192m --data @noDefault +--launcher.XXMaxPermSize 192m -ea -Xmx768M -XX:MaxPermSize=192m -Xshare:off -Dorg.simantics.undo.enabled=false -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts