win: Remove CefEnableHighDPISupport function (fixes issue #3452)

High-DPI support is now enabled by default in Chromium.
This commit is contained in:
Marshall Greenblatt
2023-03-03 16:07:27 -05:00
parent d33b67cb33
commit f3b570cf8e
9 changed files with 2 additions and 47 deletions

View File

@@ -44,17 +44,6 @@ int CefRunMainWithPreferredStackSize(mainPtr main, int argc, char* argv[]) {
}
#endif // defined(ARCH_CPU_32_BITS)
NO_SANITIZE("cfi-icall") void CefEnableHighDPISupport() {
const char* api_hash = cef_api_hash(0);
if (strcmp(api_hash, CEF_API_HASH_PLATFORM)) {
// The libcef API hash does not match the current header API hash.
NOTREACHED();
return;
}
cef_enable_highdpi_support();
}
NO_SANITIZE("cfi-icall") void CefSetOSModalLoop(bool osModalLoop) {
cef_set_osmodal_loop(osModalLoop);
}