Wireshark 4.5.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Functions | |
HANDLE | set_thread_per_monitor_v2_awareness (void) |
set_thread_per_monitor_v2_awareness | |
void | revert_thread_per_monitor_v2_awareness (HANDLE context) |
revert_thread_per_monitor_v2_awareness | |
Native Windows file dialog routines
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 2006 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
void revert_thread_per_monitor_v2_awareness | ( | HANDLE | context | ) |
revert_thread_per_monitor_v2_awareness
context |
HANDLE set_thread_per_monitor_v2_awareness | ( | void | ) |
set_thread_per_monitor_v2_awareness
Qt <= 5.9 supports setting old (Windows 8.1) per-monitor DPI awareness via Qt:AA_EnableHighDpiScaling. We do this in main.cpp. In order for native dialogs to be rendered correctly we need to set per-monitor v2 awareness prior to creating the dialog, which we can do here. Qt < 5.14(?) or so doesn't render correctly when per-monitor v2 awareness is enabled, so we need to revert our thread context when we're done. Qt >= 6.0 is per-monitor DPI awareness v2 by default, so this doesn't have any effect.