]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Changed AlphaComposite SRC_ATOP to SRC_OVER. This is much faster to render.
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 5 Feb 2014 11:00:52 +0000 (11:00 +0000)
committerluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 5 Feb 2014 11:00:52 +0000 (11:00 +0000)
refs #4699

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28777 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/HoverShapeNode.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/ModuleNode.java
org.simantics.sysdyn.ui/sysdyn.product

index e7e6e8105f62b0e363abd05241b8d7c29bfbd850..3cc5b2ff6ed6f70c6aa971c21507fbdd3987adf8 100644 (file)
@@ -43,7 +43,7 @@ public class HoverShapeNode extends ShapeNode implements ISelectionPainterNode {
         if (selected) {\r
             float lineWidth = oldStroke.getLineWidth() * 5;\r
             g2d.setStroke(new BasicStroke(lineWidth < 1.0f ? lineWidth : 1.0f));\r
-               g2d.setComposite(AlphaComposite.SrcAtop.derive(0.5f));\r
+               g2d.setComposite(AlphaComposite.SrcOver.derive(0.5f));\r
                g2d.setColor(Color.RED);\r
             g2d.draw(s);\r
             g2d.setColor(oldColor);\r
index 73afad886a070d18eb3f7f640241cff4d79b09ff..f2431be5720e2376213748c3e602f504c45063e5 100644 (file)
@@ -68,7 +68,7 @@ public class ModuleNode extends SysdynTextNode {
         boolean selected = NodeUtil.isSelected(this, 1);\r
         if (selected && showsSelection()) {\r
             Composite oc = g.getComposite();\r
-            g.setComposite(AlphaComposite.SrcAtop.derive(0.5f));\r
+            g.setComposite(AlphaComposite.SrcOver.derive(0.5f));\r
 \r
             g.setColor(Color.RED);\r
             float bw = borderWidth;\r
index ebda30ea6fc3a70702e4bac9188bd93f4832911c..36587b8cc8aee416b97467fb876f198751fa0598 100644 (file)
@@ -14,8 +14,7 @@
 \r
    <launcherArgs>\r
       <programArgs>-fixerrors\r
---launcher.XXMaxPermSize 192m\r
--data @noDefault</programArgs>\r
+--launcher.XXMaxPermSize 192m</programArgs>\r
       <vmArgs>-ea  -Xmx768M -XX:MaxPermSize=192m -Xshare:off -Dorg.simantics.undo.enabled=false</vmArgs>\r
       <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>\r
    </launcherArgs>\r