• 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
..
tests Loading commit data...
Makefile.in Loading commit data...
animate.c Loading commit data...
button.c Loading commit data...
combo.c Loading commit data...
comboex.c Loading commit data...
comctl32.h Loading commit data...
comctl32.manifest Loading commit data...
comctl32.rc Loading commit data...
comctl32.spec Loading commit data...
commctrl.c Loading commit data...
datetime.c Loading commit data...
dpa.c Loading commit data...
draglist.c Loading commit data...
dsa.c Loading commit data...
edit.c Loading commit data...
flatsb.c Loading commit data...
header.c Loading commit data...
hotkey.c Loading commit data...
idb_cmdlink.bmp Loading commit data...
idb_hist_large.bmp Loading commit data...
idb_hist_large.svg Loading commit data...
idb_hist_small.bmp Loading commit data...
idb_hist_small.svg Loading commit data...
idb_std_large.bmp Loading commit data...
idb_std_large.svg Loading commit data...
idb_std_small.bmp Loading commit data...
idb_std_small.svg Loading commit data...
idb_view_large.bmp Loading commit data...
idb_view_large.svg Loading commit data...
idb_view_small.bmp Loading commit data...
idb_view_small.svg Loading commit data...
idc_copy.cur Loading commit data...
idc_copy.svg Loading commit data...
idc_divider.cur Loading commit data...
idc_divider.svg Loading commit data...
idc_divideropen.cur Loading commit data...
idc_divideropen.svg Loading commit data...
idc_movebutton.cur Loading commit data...
idc_movebutton.svg Loading commit data...
idi_dragarrow.ico Loading commit data...
idi_tt_error_sm.ico Loading commit data...
idi_tt_info_sm.ico Loading commit data...
idi_tt_warn_sm.ico Loading commit data...
idt_check.bmp Loading commit data...
imagelist.c Loading commit data...
ipaddress.c Loading commit data...
listbox.c Loading commit data...
listview.c Loading commit data...
monthcal.c Loading commit data...
nativefont.c Loading commit data...
pager.c Loading commit data...
progress.c Loading commit data...
propsheet.c Loading commit data...
rebar.c Loading commit data...
smoothscroll.c Loading commit data...
static.c Loading commit data...
status.c Loading commit data...
string.c Loading commit data...
syslink.c Loading commit data...
tab.c Loading commit data...
taskdialog.c Loading commit data...
toolbar.c Loading commit data...
tooltips.c Loading commit data...
trackbar.c Loading commit data...
treeview.c Loading commit data...
updown.c Loading commit data...