Skip to content

Commit

Permalink
Fix Guard DPI scaling for ARM64 in obs-browser
Browse files Browse the repository at this point in the history
  • Loading branch information
thirumalai-qcom committed Jul 24, 2024
1 parent 16d480a commit ddcaa3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions obs-browser-page/obs-browser-page-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
std::thread shutdown_check;

CefMainArgs mainArgs(nullptr);
#if !defined(_M_ARM64)
if (!SetHighDPIv2Scaling())
CefEnableHighDPISupport();
#endif

CefRefPtr<CefCommandLine> command_line =
CefCommandLine::CreateCommandLine();
Expand Down
2 changes: 2 additions & 0 deletions obs-browser-plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,9 @@ bool obs_module_load(void)

#ifdef _WIN32
/* CefEnableHighDPISupport doesn't do anything on OS other than Windows. Would also crash macOS at this point as CEF is not directly linked */
#if !defined(_M_ARM64)
CefEnableHighDPISupport();
#endif
EnumAdapterCount();
#else
#if defined(__APPLE__) && !defined(ENABLE_BROWSER_LEGACY)
Expand Down

0 comments on commit ddcaa3f

Please sign in to comment.