From 61903860b3a14d53b94e556b3ce59f93a9b2f43d Mon Sep 17 00:00:00 2001 From: Arian Fornaris Date: Wed, 26 Jun 2019 01:35:18 -0400 Subject: [PATCH] Scene editor: better background painting. --- .../phasereditor/assetpack/ui/editor/PackEditorCanvas.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/v2/phasereditor/phasereditor.assetpack.ui.editor/src/phasereditor/assetpack/ui/editor/PackEditorCanvas.java b/source/v2/phasereditor/phasereditor.assetpack.ui.editor/src/phasereditor/assetpack/ui/editor/PackEditorCanvas.java index bc2411eeb..660ad9ba9 100644 --- a/source/v2/phasereditor/phasereditor.assetpack.ui.editor/src/phasereditor/assetpack/ui/editor/PackEditorCanvas.java +++ b/source/v2/phasereditor/phasereditor.assetpack.ui.editor/src/phasereditor/assetpack/ui/editor/PackEditorCanvas.java @@ -102,7 +102,9 @@ public class PackEditorCanvas extends BaseCanvas implements PaintListener, Mouse public PackEditorCanvas(AssetPackEditor editor, Composite parent, int style) { super(parent, style | SWT.V_SCROLL); - + + setBackgroundMode(SWT.INHERIT_DEFAULT); + addPaintListener(this); addListener(SWT.MouseVerticalWheel, this::mouseScrolled); addMouseMoveListener(this);