mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-18 04:34:25 +00:00
Adding device zoom to Wizard image offset calculates. Late experiment! #113
This commit is contained in:
parent
8f1ec1193d
commit
8a8b208676
@ -25,6 +25,7 @@ import org.eclipse.swt.SWT;
|
|||||||
import org.eclipse.swt.events.SelectionAdapter;
|
import org.eclipse.swt.events.SelectionAdapter;
|
||||||
import org.eclipse.swt.events.SelectionEvent;
|
import org.eclipse.swt.events.SelectionEvent;
|
||||||
import org.eclipse.swt.graphics.Image;
|
import org.eclipse.swt.graphics.Image;
|
||||||
|
import org.eclipse.swt.internal.DPIUtil;
|
||||||
import org.eclipse.swt.layout.FillLayout;
|
import org.eclipse.swt.layout.FillLayout;
|
||||||
import org.eclipse.swt.layout.RowData;
|
import org.eclipse.swt.layout.RowData;
|
||||||
import org.eclipse.swt.layout.RowLayout;
|
import org.eclipse.swt.layout.RowLayout;
|
||||||
@ -81,13 +82,13 @@ public abstract class Wizard {
|
|||||||
|
|
||||||
// Wizard logo
|
// Wizard logo
|
||||||
RowData rowData = new RowData();
|
RowData rowData = new RowData();
|
||||||
rowData.width = logo.getImageData().width;
|
rowData.width = logo.getImageData(DPIUtil.getDeviceZoom()).width;
|
||||||
rowData.height = logo.getImageData().height;
|
rowData.height = logo.getImageData(DPIUtil.getDeviceZoom()).height;
|
||||||
imageCanvas = new ImageCanvas(dialog, SWT.BORDER, logo, rowData);
|
imageCanvas = new ImageCanvas(dialog, SWT.BORDER, logo, rowData);
|
||||||
|
|
||||||
// Starting pane
|
// Starting pane
|
||||||
rowData = new RowData();
|
rowData = new RowData();
|
||||||
rowData.width = logo.getImageData().width;
|
rowData.width = logo.getImageData(DPIUtil.getDeviceZoom()).width;
|
||||||
contentPane = new Composite(dialog, SWT.BORDER);
|
contentPane = new Composite(dialog, SWT.BORDER);
|
||||||
contentPane.setLayoutData(rowData);
|
contentPane.setLayoutData(rowData);
|
||||||
contentPane.setLayout(new FillLayout());
|
contentPane.setLayout(new FillLayout());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user