Title: [202087] trunk/Tools
Revision
202087
Author
[email protected]
Date
2016-06-15 02:36:22 -0700 (Wed, 15 Jun 2016)

Log Message

[Win] MiniBrowser is not DPI aware.
https://bugs.webkit.org/show_bug.cgi?id=158733

Reviewed by Brent Fulgham.

Call Win32 api function to let Windows know that we will scale the contents ourselves.

* MiniBrowser/win/WinMain.cpp:
(wWinMain):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (202086 => 202087)


--- trunk/Tools/ChangeLog	2016-06-15 09:26:08 UTC (rev 202086)
+++ trunk/Tools/ChangeLog	2016-06-15 09:36:22 UTC (rev 202087)
@@ -1,5 +1,17 @@
 2016-06-15  Per Arne Vollan  <[email protected]>
 
+        [Win] MiniBrowser is not DPI aware.
+        https://bugs.webkit.org/show_bug.cgi?id=158733
+
+        Reviewed by Brent Fulgham.
+
+        Call Win32 api function to let Windows know that we will scale the contents ourselves.
+
+        * MiniBrowser/win/WinMain.cpp:
+        (wWinMain):
+
+2016-06-15  Per Arne Vollan  <[email protected]>
+
         Unreviewed: add new email address to contributors.json.
 
         * Scripts/webkitpy/common/config/contributors.json:

Modified: trunk/Tools/MiniBrowser/win/WinMain.cpp (202086 => 202087)


--- trunk/Tools/MiniBrowser/win/WinMain.cpp	2016-06-15 09:26:08 UTC (rev 202086)
+++ trunk/Tools/MiniBrowser/win/WinMain.cpp	2016-06-15 09:36:22 UTC (rev 202087)
@@ -69,6 +69,8 @@
     // Init COM
     OleInitialize(nullptr);
 
+    ::SetProcessDPIAware();
+
     float scaleFactor = WebCore::deviceScaleFactorForWindow(nullptr);
 
     if (usesLayeredWebView) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to