diff options
| author | Zhao Yuhang <2546789017@qq.com> | 2025-06-21 15:19:36 +0800 |
|---|---|---|
| committer | Zhao Yuhang <2546789017@qq.com> | 2025-06-26 11:51:38 +0000 |
| commit | 635f79f16300ed4b53a6665c81d0a37a2de9d78e (patch) | |
| tree | 38f2186054dc8243e3176140534f9908497b0ce1 /src/corelib/global/qlogging.cpp | |
| parent | aaaee137c25892bb5ee930c5fb6dac43d217fd71 (diff) | |
Windows QPA: fix PMv2 detect logic
Before this patch, in QWindowsContext::setProcessDpiAwareness,
there are some conditions that will make this function return
early, in this case, QWindowsContextPrivate::m_v2DpiAware won't
be updated to the correct value (it's initially set to false
and we want it to be true in these cases), this is absolutely
wrong. Luckily, this issue just makes QPA call enableNonClientDpiScaling() in unnecessary situations and
that is harmless. But it's also better to fix this issue.
Change-Id: I04d70d5d83b898a3cd2856d504bcd3f5519427b4
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
0 files changed, 0 insertions, 0 deletions
