X Tutup
Skip to content

Commit 1a118ed

Browse files
committed
Fix building on Linux
1 parent b9e8e46 commit 1a118ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/subprocess/cefpython_app.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,13 @@ void CefPythonApp::OnBeforeChildProcessLaunch(
177177
#ifdef BROWSER_PROCESS
178178
// This is included only in the Browser process, when building
179179
// the libcefpythonapp library.
180+
#if defined(OS_WINDOWS)
180181
if (IsProcessDpiAware()) {
181182
// It is required to set DPI awareness in subprocesses
182183
// as well, see Issue #358.
183184
command_line->AppendSwitch("enable-high-dpi-support");
184185
}
186+
#endif // OS_WINDOWS
185187
BrowserProcessHandler_OnBeforeChildProcessLaunch(command_line);
186188
#endif // BROWSER_PROCESS
187189

0 commit comments

Comments
 (0)
X Tutup