Robert Grocott rgrocottbugzilla@gmail.com wrote:
--- a/dlls/user32/button.c +++ b/dlls/user32/button.c @@ -190,12 +190,7 @@ static inline UINT get_button_type( LONG window_style ) /* paint a button of any type */ static inline void paint_button( HWND hwnd, LONG style, UINT action ) {
- if (btnPaintFunc[style] && IsWindowVisible(hwnd))
- {
HDC hdc = GetDC( hwnd );
btnPaintFunc[style]( hwnd, hdc, action );
ReleaseDC( hwnd, hdc );
- }
- InvalidateRect( hwnd, NULL, FALSE);
}
This is wrong, you will discover that after running 'make test'.