Backends: Win32: use SetProcessDpiAwarenessContext instead of SetThreadDpiAwarenessContext when available, to fix the OpenGL3 Win32 example DPI scaling issue. (#9403)

This commit is contained in:
MouriNaruto
2026-05-19 17:53:36 +02:00
committed by ocornut
parent e41d691da1
commit 3e7b79aa17
2 changed files with 13 additions and 1 deletions
+5
View File
@@ -52,6 +52,11 @@ Other Changes:
- Demo:
- Extract 'Widgets->Tree Nodes->Selectable Nodes' out of the 'Advanced'
demo for clarity (manual reimplementation of basic selection).
- Backends:
- Win32:
- Uses `SetProcessDpiAwarenessContext()` instead of `SetThreadDpiAwarenessContext()`
when available, fixing OpenGL DPI scaling issues as e.g. NVIDIA drivers tends
to spawn multiple-thread to manage OpenGL. (#9403)
-----------------------------------------------------------------------