Enable high DPI support.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 20 Dec 2013 06:14:07 +0000 (14:14 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 20 Dec 2013 06:14:07 +0000 (14:14 +0800)
browser/atom_browser_main_parts.cc

index 823eac946814d9a61af7a2d2f721d2ea09d5cb87..165e76b98c4a800ff9e64f166ec1f1feead7857b 100644 (file)
 #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;
 }