Fix confused cursor in HiDPI

https://github.com/electron/electron/issues/7655#issuecomment-259688853
This commit is contained in:
Yuya Ochiai
2016-12-06 22:06:04 +09:00
parent 0d2b08c9e8
commit f60d1fe0e4

View File

@@ -64,6 +64,12 @@ const assetsDir = path.resolve(app.getAppPath(), 'assets');
// be closed automatically when the JavaScript object is garbage collected.
var mainWindow = null;
// Fix confused cursor in HiDPI
// https://github.com/electron/electron/issues/7655#issuecomment-259688853
if (process.platform === 'win32') {
app.commandLine.appendSwitch('enable-use-zoom-for-dsf', 'false');
}
var argv = require('yargs').parse(process.argv.slice(1));
const electronConnect = argv.livereload ? require('electron-connect') : null;