Skip to content

Commit 9f0f9fd

Browse files
HeikoKlareptziegler
authored andcommitted
Make FlyPaletteComposite contents use native double buffering
The FlyoutPaletteComposite is instantiated with style flag SWT.DOUBLE_BUFFERED to use native double buffering. It's contained TitleCanvas and ButtonCanvas do not use that flag. In consequence, their LightweightSystem creates a BufferedGraphicsSource instead of a NativeGraphicsSource for them. This change adapts the TitleCanvas and ButtonCanvas instantiation to add the SWT.DOUBLE_BUFFERED style, such that they use native double buffering.
1 parent 2eade3c commit 9f0f9fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.eclipse.gef/src/org/eclipse/gef/ui/palette/FlyoutPaletteComposite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ private class ButtonCanvas extends Canvas {
11681168
private LightweightSystem lws;
11691169

11701170
public ButtonCanvas(Composite parent) {
1171-
super(parent, SWT.NO_REDRAW_RESIZE | SWT.NO_BACKGROUND);
1171+
super(parent, SWT.NO_REDRAW_RESIZE | SWT.NO_BACKGROUND | SWT.DOUBLE_BUFFERED);
11721172
init();
11731173
provideAccSupport();
11741174
}
@@ -1314,7 +1314,7 @@ private class TitleCanvas extends Canvas {
13141314
private LightweightSystem lws;
13151315

13161316
public TitleCanvas(Composite parent, boolean horizontal) {
1317-
super(parent, SWT.NO_REDRAW_RESIZE | SWT.NO_BACKGROUND);
1317+
super(parent, SWT.NO_REDRAW_RESIZE | SWT.NO_BACKGROUND | SWT.DOUBLE_BUFFERED);
13181318
init(horizontal);
13191319
provideAccSupport();
13201320
}

0 commit comments

Comments
 (0)