winecfg: Use SM_CYSIZE to set and get caption height.
commit982c9974a76e9f59bbab5385df868498c8a95bde
authorZhiyi Zhang <zzhang@codeweavers.com>
Wed, 19 Oct 2022 08:42:49 +0000 (19 16:42 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 2 Nov 2022 16:19:42 +0000 (2 17:19 +0100)
tree7bc60dee7dfc3fd2ecd2872ea3eecb9999d9a60a
parent97bef536a341c20a1699e4fb8ec860d78b338538
winecfg: Use SM_CYSIZE to set and get caption height.

After applying a theme with CaptionBarHeight set, caption height from SPI_GETNONCLIENTMETRICS is set
to the specified size. However in refresh_sysparams(), the caption height is refreshed and the value
from SM_CXSIZE is used and ends up overwriting the theme specified caption height. SM_CYSIZE is the
correct index instead of SM_CXSIZE.

You may need to turn a theme off and on for the correct caption height to take effect after the fix.
programs/winecfg/theme.c