]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/color/ColorGradientCanvas.java
Disable flickering in ColorSelectionDialog
[simantics/platform.git] / bundles / org.simantics.utils.ui / src / org / simantics / utils / ui / color / ColorGradientCanvas.java
index 11ba7642b6240b9883a968d02c31d62ad68fac22..c3506f8bbbcbb18efaee5995d3fbc6a697aa0841 100644 (file)
@@ -33,7 +33,7 @@ public class ColorGradientCanvas extends Canvas{
        int style;
        
        public ColorGradientCanvas(Composite parent, int style) {
-               super(parent,(style|SWT.BORDER)&(~(SWT.VERTICAL|SWT.HORIZONTAL)));
+               super(parent,(style|SWT.BORDER)&(~(SWT.VERTICAL|SWT.HORIZONTAL))|SWT.DOUBLE_BUFFERED);
                this.style = style & (SWT.VERTICAL | SWT.HORIZONTAL) ;
                addPaintListener(createPaintListener());
        }