26 Aug
2024
26 Aug
'24
1:13 p.m.
Zhiyi Zhang (@zhiyi) commented about dlls/user32/edit.c:
LONG_PTR ExStyle; - INT bw, bh; + INT bw, bh, is_large = 0; + RECT edit_rect; ExStyle = GetWindowLongPtrW(es->hwndSelf, GWL_EXSTYLE); - - CopyRect(&es->format_rect, rc); - - if (ExStyle & WS_EX_CLIENTEDGE) { + + if (EDIT_is_valid_format_rect(es, rc)) + { + CopyRect(&es->format_rect, rc); + GetClientRect(es->hwndSelf, &edit_rect); + if ((rc->bottom - rc->top) > (edit_rect.bottom - edit_rect.top)) + is_large = 1; "too_large" might be more appropriate.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6304#note_80002