Skip to content

Commit

Permalink
Fix confused cursor in HiDPI
Browse files Browse the repository at this point in the history
  • Loading branch information
yuya-oc committed Dec 6, 2016
1 parent 0d2b08c commit f60d1fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f60d1fe

Please sign in to comment.