Changeset 5710 for trunk/src


Ignore:
Timestamp:
May 15, 2001, 12:34:48 PM (24 years ago)
Author:
sandervl
Message:

BeginPaint must return logical points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/dc.cpp

    r5692 r5710  
    1 /* $Id: dc.cpp,v 1.101 2001-05-11 19:02:01 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.102 2001-05-15 10:34:48 sandervl Exp $ */
    22
    33/*
     
    712712
    713713#ifdef DEBUG
     714        //Note: GpiQueryClipBox returns logical points
    714715        lComplexity = GpiQueryClipBox(pHps->hps, &rectlClip);
    715716        dprintf(("ClipBox (%d): (%d,%d)(%d,%d)", lComplexity, rectlClip.xLeft, rectlClip.yBottom, rectlClip.xRight, rectlClip.yTop));
     
    727728
    728729#ifdef DEBUG
     730        //Note: GpiQueryClipBox returns logical points
    729731        GpiQueryClipBox(pHps->hps, &rectlClip);
    730732        dprintf(("ClipBox (%d): (%d,%d)(%d,%d)", lComplexity, rectlClip.xLeft, rectlClip.yBottom, rectlClip.xRight, rectlClip.yTop));
     
    759761        lpps->rcPaint.bottom = height - rectl.yBottom;
    760762        lpps->rcPaint.right  = rectl.xRight;
     763        //BeginPaint must return logical points instead of device points.
     764        //(not the same if e.g. app changes page viewport)
     765        DPtoLP(lpps->hdc, (LPPOINT)&lpps->rcPaint, 2);
    761766    }
    762767    else {
Note: See TracChangeset for help on using the changeset viewer.