From: Cheng Zhao Date: Fri, 20 Dec 2013 06:14:07 +0000 (+0800) Subject: Enable high DPI support. X-Git-Tag: v0.8.0~4^2~9 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f646d2dda8c212e7cd9534dc93249d44abb1840b;p=electron.git Enable high DPI support. --- diff --git a/browser/atom_browser_main_parts.cc b/browser/atom_browser_main_parts.cc index 823eac94..165e76b9 100644 --- a/browser/atom_browser_main_parts.cc +++ b/browser/atom_browser_main_parts.cc @@ -11,6 +11,10 @@ #include "common/node_bindings.h" #include "net/proxy/proxy_resolver_v8.h" +#if defined(OS_WIN) +#include "ui/gfx/win/dpi.h" +#endif + #include "common/v8/node_common.h" namespace atom { @@ -85,6 +89,11 @@ int AtomBrowserMainParts::PreCreateThreads() { // try to create a V8 isolate, which messed everything on Windows, so we // have to override and call RememberDefaultIsolate on Windows instead. net::ProxyResolverV8::RememberDefaultIsolate(); + +#if defined(OS_WIN) + gfx::EnableHighDPISupport(); +#endif + return 0; }