Changeset 9662 for trunk/src


Ignore:
Timestamp:
Jan 10, 2003, 6:11:18 PM (23 years ago)
Author:
sandervl
Message:

must convert rectangle returned by GetClipBox to device coordinates

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 bird Exp $ */
     1/* $Id: dcscroll.cpp,v 1.3 2003-01-10 17:11:18 sandervl Exp $ */
    22/*
    33 * ScrollDC implementation
     
    3434
    3535    if ( rc )
    36     rect = *rc;
     36        rect = *rc;
    3737    else /* maybe we should just return FALSE? */
    3838    {
    3939        DebugInt3();
    40     GetClipBox( hdc, &rect );
     40        GetClipBox( hdc, &rect );
    4141    }
    4242
     
    4747        rClip = *prLClip;
    4848        LPtoDP( hdc, (LPPOINT)&rClip, 2 );
    49     IntersectRect( &rClip, &rect, &rClip );
     49        IntersectRect( &rClip, &rect, &rClip );
    5050    }
    5151    else
     
    5454    //limit scrolling to DC's clip rectangle
    5555    GetClipBox( hdc, &rSrc );
     56    LPtoDP(hdc, (LPPOINT)&rSrc, 2);
     57
    5658    IntersectRect( &rClip, &rSrc, &rClip );
    5759    IntersectRect( &rect, &rSrc, &rect );
     
    104106
    105107            if( rcUpdate )
    106         {
    107         GetRgnBox( hrgn, rcUpdate );
     108            {
     109                GetRgnBox( hrgn, rcUpdate );
    108110
    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            }
    112114            if (!hrgnUpdate) DeleteObject( hrgn );
    113115            DeleteObject( hrgn2 );
    114116
    115117    }
    116 
    117118    return TRUE;
    118 
    119119}
    120120//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.