Ignore:
Timestamp:
Sep 5, 2001, 3:54:53 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

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 $ */
    32/*
    43 * ScrollDC implementation
    5  * 
     4 *
    65 * Ported from Wine (windows\scroll.c)
    76 * Fixes for clip rectangles & adaption for Odin (SvL)
    87 *
    98 * Copyright  David W. Metcalfe, 1993
    10  *            Alex Korobka       1995,1996
     9 *        Alex Korobka       1995,1996
    1110 *
    1211 *
    1312 */
     13
     14#include <os2win.h>
    1415
    1516//******************************************************************************
     
    2425
    2526    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                    prLClip ? prLClip->left : 0, prLClip ? prLClip->top : 0, prLClip ? prLClip->right : 0, prLClip ? prLClip->bottom : 0,
    28                    rc ? rc->left : 0, rc ? rc->top : 0, rc ? rc->right : 0, rc ? rc->bottom : 0 ));
     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 ));
    2930
    3031    if ( !hdc ) return FALSE;
     
    3334
    3435    if ( rc )
    35         rect = *rc;
     36    rect = *rc;
    3637    else /* maybe we should just return FALSE? */
    3738    {
    3839        DebugInt3();
    39         GetClipBox( hdc, &rect );
     40    GetClipBox( hdc, &rect );
    4041    }
    4142
     
    4647        rClip = *prLClip;
    4748        LPtoDP( hdc, (LPPOINT)&rClip, 2 );
    48         IntersectRect( &rClip, &rect, &rClip );
     49    IntersectRect( &rClip, &rect, &rClip );
    4950    }
    5051    else
     
    7475
    7576            /* copy bits */
    76    
     77
    7778            DPtoLP( hdc, (LPPOINT)&rSrc, 2 );
    7879            DPtoLP( hdc, &src, 1 );
     
    103104
    104105            if( rcUpdate )
    105             {
    106                 GetRgnBox( hrgn, rcUpdate );
     106        {
     107        GetRgnBox( hrgn, rcUpdate );
    107108
    108                 /* Put the rcUpdate in logical coordinate */
    109                 DPtoLP( hdc, (LPPOINT)rcUpdate, 2 );
    110             }
     109        /* Put the rcUpdate in logical coordinate */
     110        DPtoLP( hdc, (LPPOINT)rcUpdate, 2 );
     111        }
    111112            if (!hrgnUpdate) DeleteObject( hrgn );
    112113            DeleteObject( hrgn2 );
Note: See TracChangeset for help on using the changeset viewer.