From: jsimomaa Date: Tue, 18 Dec 2018 13:10:14 +0000 (+0200) Subject: Disable flickering in ColorSelectionDialog X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=c85e6110bc4411dda0510afd50bad879353ab69c;p=simantics%2Fplatform.git Disable flickering in ColorSelectionDialog gitlab #238 Change-Id: Ib21e8b4eb569172f96db1b463297abe12d3d061c (cherry picked from commit a8891c8747dbfa75a4a3811ced1772c607ab5bdf) --- diff --git a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/color/ColorGradientCanvas.java b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/color/ColorGradientCanvas.java index 11ba7642b..c3506f8bb 100644 --- a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/color/ColorGradientCanvas.java +++ b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/color/ColorGradientCanvas.java @@ -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()); }