Skip to content

Commit

Permalink
fix: mac devices with retina display render blurry
Browse files Browse the repository at this point in the history
this commit aims to fix this issue by scoping the lines added to fix #255 only to windows.
  • Loading branch information
ericorruption authored and xgi committed Oct 12, 2023
1 parent 6eb3b61 commit b948591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,10 @@ ipcMain.handle(ipcChannels.APP.READ_ENTIRE_FILE, (_event, filepath: string) => {
return fs.readFileSync(filepath).toString();
});

app.commandLine.appendSwitch('high-dpi-support', '1');
app.commandLine.appendSwitch('force-device-scale-factor', '1');
if (process.platform === 'win32') {
app.commandLine.appendSwitch('high-dpi-support', '1');
app.commandLine.appendSwitch('force-device-scale-factor', '1');
}

// create ipc handlers for specific extension functionality
const webviewFn: WebviewFunc = (url, options) => loadInWebView(spoofWindow, url, options);
Expand Down

0 comments on commit b948591

Please sign in to comment.