Skip to content

Commit 27cd33d

Browse files
authored
Restore pre 1.40 way of setting disable-color-correct-rendering in electron (microsoft#84154) (microsoft#84269) (microsoft#84296)
1 parent 65cf4c8 commit 27cd33d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ function configureCommandlineSwitchesSync(cliArgs) {
147147
if (argvValue === true || argvValue === 'true') {
148148
if (argvKey === 'disable-hardware-acceleration') {
149149
app.disableHardwareAcceleration(); // needs to be called explicitly
150+
} else if (argvKey === 'disable-color-correct-rendering') {
151+
app.commandLine.appendSwitch('disable-color-correct-rendering'); // needs to be called exactly like this (https://github.com/microsoft/vscode/issues/84154)
150152
} else {
151153
app.commandLine.appendArgument(argvKey);
152154
}

0 commit comments

Comments
 (0)