Commit c536a4a6 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Swap CalcToolbar and paint rectangle computation to the correct order.

parent ebb27911
...@@ -3794,10 +3794,11 @@ TOOLBAR_Paint (HWND hwnd, WPARAM wParam) ...@@ -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);
......
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