22 Jul
2009
22 Jul
'09
4:31 a.m.
Dmitry Timoshkov <dmitry(a)codeweavers.com> writes:
@@ -847,7 +847,8 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action ) if (state & (BUTTON_CHECKED | BUTTON_3STATE)) uState |= DFCS_CHECKED;
- DrawFrameControl( hDC, &rc, DFC_BUTTON, uState ); + if (action == ODA_DRAWENTIRE) + DrawFrameControl( hDC, &rc, DFC_BUTTON, uState );
It doesn't seem right to do only half the drawing operations. If we are not doing ODA_DRAWENTIRE then we should be drawing only the focus rect, like the other button types do. -- Alexandre Julliard julliard(a)winehq.org