win: Don't overwrite Chrome hight DPI setting.
Also disable high DPI mode by default, Chrome enables it since https://codereview.chromium.org/294293002
This commit is contained in:
parent
f1e72914f5
commit
90bfd4bf0f
1 changed files with 0 additions and 12 deletions
|
@ -18,7 +18,6 @@
|
||||||
#include "atom/app/atom_main_delegate.h"
|
#include "atom/app/atom_main_delegate.h"
|
||||||
#include "atom/common/crash_reporter/win/crash_service_main.h"
|
#include "atom/common/crash_reporter/win/crash_service_main.h"
|
||||||
#include "base/environment.h"
|
#include "base/environment.h"
|
||||||
#include "base/win/registry.h"
|
|
||||||
#include "content/public/app/startup_helper_win.h"
|
#include "content/public/app/startup_helper_win.h"
|
||||||
#include "sandbox/win/src/sandbox_types.h"
|
#include "sandbox/win/src/sandbox_types.h"
|
||||||
#include "ui/gfx/win/dpi.h"
|
#include "ui/gfx/win/dpi.h"
|
||||||
|
@ -36,13 +35,6 @@ int Start(int argc, char *argv[]);
|
||||||
|
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
const wchar_t kRegistryProfilePath[] = L"SOFTWARE\\Google\\Chrome\\Profile";
|
|
||||||
const wchar_t kHighDPISupportW[] = L"high-dpi-support";
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) {
|
int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) {
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
wchar_t** wargv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
|
wchar_t** wargv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
|
||||||
|
@ -109,10 +101,6 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) {
|
||||||
atom::AtomMainDelegate delegate;
|
atom::AtomMainDelegate delegate;
|
||||||
|
|
||||||
// Now chrome relies on a regkey to enable high dpi support.
|
// Now chrome relies on a regkey to enable high dpi support.
|
||||||
base::win::RegKey high_dpi_key(HKEY_CURRENT_USER);
|
|
||||||
high_dpi_key.CreateKey(kRegistryProfilePath, KEY_SET_VALUE);
|
|
||||||
high_dpi_key.WriteValue(kHighDPISupportW, 1);
|
|
||||||
|
|
||||||
gfx::EnableHighDPISupport();
|
gfx::EnableHighDPISupport();
|
||||||
|
|
||||||
content::ContentMainParams params(&delegate);
|
content::ContentMainParams params(&delegate);
|
||||||
|
|
Loading…
Reference in a new issue