Sweden-Number/dlls/uxtheme
Zhiyi Zhang 7290db3e7a 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>
2021-09-09 10:21:27 +02:00
..
tests uxtheme/tests: Use the OpenThemeDataForDpi() function pointer. 2021-09-02 21:57:38 +02:00
Makefile.in uxtheme: Move themed dialog to uxtheme. 2021-07-20 18:49:55 +02:00
buffer.c uxtheme: Remove unused code. 2021-02-22 20:20:10 +01:00
dialog.c uxtheme: Move themed dialog to uxtheme. 2021-07-20 18:49:55 +02:00
draw.c uxtheme: Get DPI from theme class. 2021-09-01 17:06:22 +02:00
main.c uxtheme: Avoid memory leaks. 2021-07-05 17:52:47 +02:00
metric.c
msstyles.c uxtheme: Get and set system metrics in 96 DPI. 2021-09-09 10:21:27 +02:00
msstyles.h uxtheme: Get DPI from theme class. 2021-09-01 17:06:22 +02:00
property.c
scrollbar.c uxtheme: Use OpenThemeDataForDpi() to create a theme handle not associated to a window. 2021-09-01 17:06:22 +02:00
stylemap.c uxtheme: Support more HiDPI properties. 2021-08-24 12:13:35 +02:00
system.c uxtheme: Get and set system metrics in 96 DPI. 2021-09-09 10:21:27 +02:00
uxini.c
uxtheme.manifest uxtheme: Add comctl32 v6 manifest. 2021-08-25 10:39:54 +02:00
uxtheme.spec uxtheme: Implement OpenThemeDataForDpi(). 2021-09-01 17:06:22 +02:00
uxthemedll.h uxtheme: Support drawing themed standard scroll bars. 2021-07-20 18:50:11 +02:00
version.rc uxtheme: Add comctl32 v6 manifest. 2021-08-25 10:39:54 +02:00