Sweden-Number/dlls/uxtheme
Zhiyi Zhang f0143c1bc9 uxtheme: Get and set system metrics in 96 DPI.
Fix a bug that font size may be smaller than normal after toggling theming.

For example, the following steps will change the system metrics to incorrect values.
1. Open winecfg, and set DPI to 192. Do not restart winecfg.
2. Change the theme to Light. UXTHEME_BackupSystemMetrics() backs up system metrics in 96 DPI
because the current DPI is still 96.
3. Restart winecfg and turn off theming. UXTHEME_RestoreSystemMetrics() restores system metrics in
192 DPI because the current DPI is 192. So system metrics will be scaled to 1/2 of the original size.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37592
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 7290db3e7a)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-11-22 23:09:53 +01:00
..
tests uxtheme: Send WM_THEMECHANGED instead of posting it in SetWindowTheme(). 2021-10-30 18:05:13 +02:00
Makefile.in
buffer.c
draw.c uxtheme: Use wide-char string literals. 2020-10-20 12:43:01 +02:00
main.c
metric.c
msstyles.c uxtheme: Get and set system metrics in 96 DPI. 2021-11-22 23:09:53 +01:00
msstyles.h
property.c
stylemap.c uxtheme: Fix incorrect part IDs in button class map. 2021-10-30 18:05:13 +02:00
system.c uxtheme: Get and set system metrics in 96 DPI. 2021-11-22 23:09:53 +01:00
uxini.c uxtheme: Use wide-char string literals. 2020-10-20 12:43:01 +02:00
uxtheme.spec
uxthemedll.h
version.rc