8 Aug
2025
8 Aug
'25
9:27 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/user32/text.c:
last_line = !(flags & DT_NOCLIP) && y - ((flags & DT_EDITCONTROL) ? 2*lh-1 : lh) < rect->bottom; else last_line = !(flags & DT_NOCLIP) && y + ((flags & DT_EDITCONTROL) ? 2*lh-1 : lh) > rect->bottom; + + old_count = count; strPtr = TEXT_NextLineW(hdc, strPtr, &count, line, &len, width, flags, &size, last_line, retstr, tabwidth, &prefix_offset, &ellip); + if (dtp) dtp->uiLengthDrawn += old_count - count;
`dtp->uiLengthDrawn += old_count - count;` should be on a new line. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8178#note_112434