Skip to content

Commit ccda5ae

Browse files
linesightclaude
andcommitted
Fix dpi_aware.cpp guard: OS_WIN -> _WIN32
OS_WIN is a Chromium internal define that is not set in our CMake compile flags. _WIN32 is always set by MSVC on Windows, so use that instead. The previous OS_WIN guard caused the entire file to compile to nothing, leaving IsProcessDpiAware, GetSystemDpi, GetDpiAwareWindowSize and SetBrowserDpiSettings undefined. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 95d32cb commit ccda5ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/client_handler/dpi_aware.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Windows only
66

7-
#ifdef OS_WIN
7+
#ifdef _WIN32
88

99
#pragma comment(lib, "Gdi32.lib")
1010
#include <math.h>
@@ -229,4 +229,4 @@ void SetBrowserDpiSettings(CefRefPtr<CefBrowser> cefBrowser,
229229
);
230230
}
231231

232-
#endif // OS_WIN
232+
#endif // _WIN32

0 commit comments

Comments
 (0)