- Timestamp:
- Jan 10, 2003, 6:11:18 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dcscroll.cpp
r6650 r9662 1 /* $Id: dcscroll.cpp,v 1. 2 2001-09-05 13:53:50 birdExp $ */1 /* $Id: dcscroll.cpp,v 1.3 2003-01-10 17:11:18 sandervl Exp $ */ 2 2 /* 3 3 * ScrollDC implementation … … 34 34 35 35 if ( rc ) 36 rect = *rc;36 rect = *rc; 37 37 else /* maybe we should just return FALSE? */ 38 38 { 39 39 DebugInt3(); 40 GetClipBox( hdc, &rect );40 GetClipBox( hdc, &rect ); 41 41 } 42 42 … … 47 47 rClip = *prLClip; 48 48 LPtoDP( hdc, (LPPOINT)&rClip, 2 ); 49 IntersectRect( &rClip, &rect, &rClip );49 IntersectRect( &rClip, &rect, &rClip ); 50 50 } 51 51 else … … 54 54 //limit scrolling to DC's clip rectangle 55 55 GetClipBox( hdc, &rSrc ); 56 LPtoDP(hdc, (LPPOINT)&rSrc, 2); 57 56 58 IntersectRect( &rClip, &rSrc, &rClip ); 57 59 IntersectRect( &rect, &rSrc, &rect ); … … 104 106 105 107 if( rcUpdate ) 106 {107 GetRgnBox( hrgn, rcUpdate );108 { 109 GetRgnBox( hrgn, rcUpdate ); 108 110 109 /* Put the rcUpdate in logical coordinate */110 DPtoLP( hdc, (LPPOINT)rcUpdate, 2 );111 }111 /* Put the rcUpdate in logical coordinate */ 112 DPtoLP( hdc, (LPPOINT)rcUpdate, 2 ); 113 } 112 114 if (!hrgnUpdate) DeleteObject( hrgn ); 113 115 DeleteObject( hrgn2 ); 114 116 115 117 } 116 117 118 return TRUE; 118 119 119 } 120 120 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.