Changeset 6650 for trunk/src/user32/dcscroll.cpp
- Timestamp:
- Sep 5, 2001, 3:54:53 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dcscroll.cpp
r5899 r6650 1 #include <os2win.h> 2 1 /* $Id: dcscroll.cpp,v 1.2 2001-09-05 13:53:50 bird Exp $ */ 3 2 /* 4 3 * ScrollDC implementation 5 * 4 * 6 5 * Ported from Wine (windows\scroll.c) 7 6 * Fixes for clip rectangles & adaption for Odin (SvL) 8 7 * 9 8 * Copyright David W. Metcalfe, 1993 10 * 9 * Alex Korobka 1995,1996 11 10 * 12 11 * 13 12 */ 13 14 #include <os2win.h> 14 15 15 16 //****************************************************************************** … … 24 25 25 26 dprintf(("USER32: ScrollDC %04x %d,%d hrgnUpdate=%04x rcUpdate = %p cliprc = (%d,%d-%d,%d), rc=(%d,%d-%d,%d)", 26 hdc, dx, dy, hrgnUpdate, rcUpdate, 27 28 27 hdc, dx, dy, hrgnUpdate, rcUpdate, 28 prLClip ? prLClip->left : 0, prLClip ? prLClip->top : 0, prLClip ? prLClip->right : 0, prLClip ? prLClip->bottom : 0, 29 rc ? rc->left : 0, rc ? rc->top : 0, rc ? rc->right : 0, rc ? rc->bottom : 0 )); 29 30 30 31 if ( !hdc ) return FALSE; … … 33 34 34 35 if ( rc ) 35 36 rect = *rc; 36 37 else /* maybe we should just return FALSE? */ 37 38 { 38 39 DebugInt3(); 39 40 GetClipBox( hdc, &rect ); 40 41 } 41 42 … … 46 47 rClip = *prLClip; 47 48 LPtoDP( hdc, (LPPOINT)&rClip, 2 ); 48 49 IntersectRect( &rClip, &rect, &rClip ); 49 50 } 50 51 else … … 74 75 75 76 /* copy bits */ 76 77 77 78 DPtoLP( hdc, (LPPOINT)&rSrc, 2 ); 78 79 DPtoLP( hdc, &src, 1 ); … … 103 104 104 105 if( rcUpdate ) 105 106 106 { 107 GetRgnBox( hrgn, rcUpdate ); 107 108 108 109 110 109 /* Put the rcUpdate in logical coordinate */ 110 DPtoLP( hdc, (LPPOINT)rcUpdate, 2 ); 111 } 111 112 if (!hrgnUpdate) DeleteObject( hrgn ); 112 113 DeleteObject( hrgn2 );
Note:
See TracChangeset
for help on using the changeset viewer.