Skip to content

Commit

Permalink
Scene editor: better background painting.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhaserEditor2D committed Jun 26, 2019
1 parent 20a86dd commit 6190386
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6190386

Please sign in to comment.