Dmitry Timoshkov : user32: Button painting code always sets up the clipping , there is no need to duplicate it.

Alexandre Julliard julliard at winehq.org
Tue Apr 13 11:24:40 CDT 2010


Module: wine
Branch: master
Commit: fedc194e68e18367a6d7d0f0d8dd6b314474d111
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fedc194e68e18367a6d7d0f0d8dd6b314474d111

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Tue Apr 13 15:48:53 2010 +0900

user32: Button painting code always sets up the clipping, there is no need to duplicate it.

---

 dlls/user32/button.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/button.c b/dlls/user32/button.c
index 916d0c2..eacacbb 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -834,8 +834,6 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action )
     if (pushedState)
        OffsetRect(&r, 1, 1);
 
-    IntersectClipRect(hDC, rc.left, rc.top, rc.right, rc.bottom);
-
     oldTxtColor = SetTextColor( hDC, GetSysColor(COLOR_BTNTEXT) );
 
     BUTTON_DrawLabel(hwnd, hDC, dtFlags, &r);
@@ -847,7 +845,6 @@ draw_focus:
         ((action == ODA_DRAWENTIRE) && (state & BUTTON_HASFOCUS)))
     {
         InflateRect( &focus_rect, -1, -1 );
-        IntersectRect(&focus_rect, &focus_rect, &rc);
         DrawFocusRect( hDC, &focus_rect );
     }
 




More information about the wine-cvs mailing list