• Zhiyi Zhang's avatar
    comctl32/button: Pass the destination rectangle to GetThemePartSize() when painting check boxes. · 830348d7
    Zhiyi Zhang authored
    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: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
    830348d7
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...