Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2016-06-24 16:26:53 +0000
committerNiraj Modi2016-06-27 16:39:39 +0000
commit539a6153646fdff2ffa011732f02d2ed7a11a108 (patch)
tree6c46cd4e18fa80cbcb880b9df5b57ef84c1be96f /bundles/org.eclipse.swt/Eclipse SWT Browser
parentc1aa36436e881ddc20f54147fbf3ead08989f297 (diff)
downloadeclipse.platform.swt-539a6153646fdff2ffa011732f02d2ed7a11a108.tar.gz
eclipse.platform.swt-539a6153646fdff2ffa011732f02d2ed7a11a108.tar.xz
eclipse.platform.swt-539a6153646fdff2ffa011732f02d2ed7a11a108.zip
Bug 493666 - [win32][HiDPI] Images in Browser widget not scaled
Change-Id: I144a8f82898e23cc205ad323d1ee4516cae5ee17 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Browser')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java4
2 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java
index ce4ca4c4e3..9e6ea61cab 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java
@@ -104,6 +104,7 @@ class IE extends WebBrowser {
static final int DOCHOSTUIFLAG_NO3DBORDER = 0x0000004;
static final int DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x00200000;
static final int DOCHOSTUIFLAG_ENABLE_REDIRECT_NOTIFICATION = 0x04000000;
+ static final int DOCHOSTUIFLAG_DPI_AWARE = 0x40000000;
static final String ABOUT_BLANK = "about:blank"; //$NON-NLS-1$
static final String CLSID_SHELLEXPLORER1 = "{EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B}"; //$NON-NLS-1$
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java
index 192136f836..676f9a3f63 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -281,7 +281,7 @@ int GetExternal(long /*int*/ ppDispatch) {
}
int GetHostInfo(long /*int*/ pInfo) {
- int info = IE.DOCHOSTUIFLAG_THEME | IE.DOCHOSTUIFLAG_ENABLE_REDIRECT_NOTIFICATION;
+ int info = IE.DOCHOSTUIFLAG_THEME | IE.DOCHOSTUIFLAG_ENABLE_REDIRECT_NOTIFICATION | IE.DOCHOSTUIFLAG_DPI_AWARE;
IE browser = (IE)((Browser)getParent().getParent()).webBrowser;
if ((browser.style & SWT.BORDER) == 0) info |= IE.DOCHOSTUIFLAG_NO3DOUTERBORDER;
DOCHOSTUIINFO uiInfo = new DOCHOSTUIINFO ();

Back to the top