Skip to content

Commit

Permalink
Merge pull request #384 from yuya-oc/fix-confused-cursor-in-hidpi
Browse files Browse the repository at this point in the history
Fix confused cursor in HiDPI
  • Loading branch information
jasonblais authored Dec 8, 2016
2 parents 13c8017 + f60d1fe commit 915ff76
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 915ff76

Please sign in to comment.