Merge pull request #384 from yuya-oc/fix-confused-cursor-in-hidpi

Fix confused cursor in HiDPI
This commit is contained in:
Jason Blais
2016-12-08 01:59:58 -05:00
committed by GitHub

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;