diff --git a/taichi/gui/win32.cpp b/taichi/gui/win32.cpp index eb023f8c1fecf..2b33bd4504e49 100644 --- a/taichi/gui/win32.cpp +++ b/taichi/gui/win32.cpp @@ -155,6 +155,8 @@ void GUI::process_event() { void GUI::create_window() { auto CLASS_NAME = L"Taichi Win32 Window"; + SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE); + WNDCLASS wc = {}; wc.lpfnWndProc = WindowProc;