comctl32/button: Pass the destination rectangle to GetThemePartSize() when painting check boxes.
The destination rectangle may be smaller than that of theme parts, in which case, the draw size returned is adjusted to fit the destination rectangle. Without passing a destination rectangle to GetThemePartSize(), the function assumes that there is no limit for destination.
This fixes winecfg check boxes missing the upper edge in 192 DPI. You may notice that the check box bitmap is slightly shrank and so the shape is a bit off. However, this is what happens on Windows as well when check box height is set to 8 DLUs.
GetThemePartSize() without destination rectangles are also used in other controls, but manual tests showed that those controls don't shrink their theme background as check boxes do so they are left unchanged.
Signed-off-by: Zhiyi Zhang zzhang@codeweavers.com
Merge request reports
Activity
assigned to @zhiyi
added 7 commits
-
a99d5937...869cbc4b - 3 commits from branch
wine:master
- 830348d7 - comctl32/button: Pass the destination rectangle to GetThemePartSize() when painting check boxes.
- decfcdd6 - cryptui: Use 10 DLUs for check box height.
- 24836f73 - winecfg: Use 10 DLUs for check box height.
- 975b11be - winefile: Use 10 DLUs for check box height.
Toggle commit list-
a99d5937...869cbc4b - 3 commits from branch