From c85e6110bc4411dda0510afd50bad879353ab69c Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Tue, 18 Dec 2018 15:10:14 +0200 Subject: [PATCH] Disable flickering in ColorSelectionDialog gitlab #238 Change-Id: Ib21e8b4eb569172f96db1b463297abe12d3d061c (cherry picked from commit a8891c8747dbfa75a4a3811ced1772c607ab5bdf) --- .../src/org/simantics/utils/ui/color/ColorGradientCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.47.1