mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
We can avoid flicker on column resize only if it's left align.
This commit is contained in:
parent
fa5b29acd3
commit
221398344e
1 changed files with 6 additions and 2 deletions
|
@ -7665,8 +7665,12 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, LPNMHEADERW l
|
|||
LISTVIEW_ScrollColumns(infoPtr, lpnmh->iItem + 1, dx);
|
||||
if (uView == LVS_REPORT && is_redrawing(infoPtr))
|
||||
{
|
||||
rcCol.right = min (rcCol.right, lpColumnInfo->rcHeader.right);
|
||||
rcCol.left = max (rcCol.left, rcCol.right - 3 * infoPtr->ntmAveCharWidth);
|
||||
/* this trick works for left aligned columns only */
|
||||
if ((lpColumnInfo->fmt & LVCFMT_JUSTIFYMASK) == LVCFMT_LEFT)
|
||||
{
|
||||
rcCol.right = min (rcCol.right, lpColumnInfo->rcHeader.right);
|
||||
rcCol.left = max (rcCol.left, rcCol.right - 3 * infoPtr->ntmAveCharWidth);
|
||||
}
|
||||
rcCol.top = infoPtr->rcList.top;
|
||||
rcCol.bottom = infoPtr->rcList.bottom;
|
||||
LISTVIEW_InvalidateRect(infoPtr, &rcCol);
|
||||
|
|
Loading…
Reference in a new issue