From: jsimomaa Date: Tue, 18 Dec 2018 13:10:14 +0000 (+0200) Subject: Disable flickering in ColorSelectionDialog X-Git-Tag: v1.43.0~136^2~222 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F2562%2F2;p=simantics%2Fplatform.git Disable flickering in ColorSelectionDialog gitlab #238 Change-Id: Ib21e8b4eb569172f96db1b463297abe12d3d061c --- 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()); }