Swap CalcToolbar and paint rectangle computation to the correct order.
This commit is contained in:
parent
ebb2791164
commit
c536a4a6d3
@ -3794,10 +3794,11 @@ TOOLBAR_Paint (HWND hwnd, WPARAM wParam)
|
|||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
|
||||||
|
TOOLBAR_CalcToolbar( hwnd );
|
||||||
|
|
||||||
/* fill ps.rcPaint with a default rect */
|
/* fill ps.rcPaint with a default rect */
|
||||||
memcpy(&(ps.rcPaint), &(infoPtr->rcBound), sizeof(infoPtr->rcBound));
|
memcpy(&(ps.rcPaint), &(infoPtr->rcBound), sizeof(infoPtr->rcBound));
|
||||||
|
|
||||||
TOOLBAR_CalcToolbar( hwnd );
|
|
||||||
hdc = wParam==0 ? BeginPaint(hwnd, &ps) : (HDC)wParam;
|
hdc = wParam==0 ? BeginPaint(hwnd, &ps) : (HDC)wParam;
|
||||||
TOOLBAR_Refresh (hwnd, hdc, &ps);
|
TOOLBAR_Refresh (hwnd, hdc, &ps);
|
||||||
if (!wParam) EndPaint (hwnd, &ps);
|
if (!wParam) EndPaint (hwnd, &ps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user