Commit cf4670cb authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Fix braino in calculation of LVS_LIST origin.

Invalidate the entire window when we are invalidating the list.
parent 3e7b7104
...@@ -734,7 +734,7 @@ static inline LRESULT CallWindowProcT(WNDPROC proc, HWND hwnd, UINT uMsg, ...@@ -734,7 +734,7 @@ static inline LRESULT CallWindowProcT(WNDPROC proc, HWND hwnd, UINT uMsg,
} while (0) } while (0)
#define LISTVIEW_InvalidateList(infoPtr)\ #define LISTVIEW_InvalidateList(infoPtr)\
LISTVIEW_InvalidateRect(infoPtr, &infoPtr->rcList) LISTVIEW_InvalidateRect(infoPtr, NULL)
static inline BOOL LISTVIEW_GetItemW(LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVItem) static inline BOOL LISTVIEW_GetItemW(LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVItem)
{ {
...@@ -5511,19 +5511,14 @@ static BOOL LISTVIEW_GetOrigin(LISTVIEW_INFO *infoPtr, LPPOINT lpptOrigin) ...@@ -5511,19 +5511,14 @@ static BOOL LISTVIEW_GetOrigin(LISTVIEW_INFO *infoPtr, LPPOINT lpptOrigin)
lpptOrigin->x = infoPtr->rcList.left; lpptOrigin->x = infoPtr->rcList.left;
lpptOrigin->y = infoPtr->rcList.top; lpptOrigin->y = infoPtr->rcList.top;
if (uView == LVS_LIST) if (uView == LVS_LIST)
{ nHorzPos *= infoPtr->nItemWidth;
nHorzPos *= LISTVIEW_GetCountPerColumn(infoPtr);
nVertPos = 0;
}
else if (uView == LVS_REPORT) else if (uView == LVS_REPORT)
{
nVertPos *= infoPtr->nItemHeight; nVertPos *= infoPtr->nItemHeight;
}
lpptOrigin->x -= nHorzPos; lpptOrigin->x -= nHorzPos;
lpptOrigin->y -= nVertPos; lpptOrigin->y -= nVertPos;
TRACE("(pt=(%ld,%ld))\n", lpptOrigin->x, lpptOrigin->y); TRACE(" origin=%s\n", debugpoint(lpptOrigin));
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment