Fix blur in HiDPI environment of Windows

This reverts #384 (f60d1fe0e4).
Blur was a known side effect of #384 though,
the original problem looks fixed in electron v1.6.1.
This commit is contained in:
Yuya Ochiai 2017-03-04 00:15:52 +09:00
parent 8376ffe4cc
commit 1188a2d9f7

View file

@ -68,12 +68,6 @@ const assetsDir = path.resolve(app.getAppPath(), 'assets');
// be closed automatically when the JavaScript object is garbage collected. // be closed automatically when the JavaScript object is garbage collected.
var mainWindow = null; 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)); var argv = require('yargs').parse(process.argv.slice(1));
const electronConnect = argv.livereload ? require('electron-connect') : null; const electronConnect = argv.livereload ? require('electron-connect') : null;