Skip to content

Commit

Permalink
Restore pre 1.40 way of setting disable-color-correct-rendering in el…
Browse files Browse the repository at this point in the history
…ectron (#84154) (#84269)
  • Loading branch information
bpasero authored and deepak1556 committed Nov 8, 2019
1 parent 58b7b74 commit 1a7da0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ function configureCommandlineSwitchesSync(cliArgs) {
if (argvValue === true || argvValue === 'true') {
if (argvKey === 'disable-hardware-acceleration') {
app.disableHardwareAcceleration(); // needs to be called explicitly
} else if (argvKey === 'disable-color-correct-rendering') {
app.commandLine.appendSwitch('disable-color-correct-rendering'); // needs to be called exactly like this (https://github.com/microsoft/vscode/issues/84154)
} else {
app.commandLine.appendArgument(argvKey);
}
Expand Down

0 comments on commit 1a7da0c

Please sign in to comment.