Changeset 5302 for trunk/src


Ignore:
Timestamp:
Mar 12, 2001, 3:16:08 PM (24 years ago)
Author:
sandervl
Message:

BeginPaint fix

File:
1 edited

Legend:

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

    r5246 r5302  
    1 /* $Id: dc.cpp,v 1.92 2001-02-22 18:18:59 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.93 2001-03-12 14:16:08 sandervl Exp $ */
    22
    33/*
     
    393393   pHps->isClient = FALSE;
    394394
    395    dprintfOrigin(pHps->hps);
     395////   dprintfOrigin(pHps->hps);
    396396
    397397   if(pHps->isClientArea)
     
    406406                   SETUPDC_ORIGIN | SETUPDC_VISRGN | SETUPDC_RECALCCLIP);
    407407   }
    408    else dprintf2(("removeClientArea: %x (%d,%d) (%d,%d)", window->getWindowHandle(), point.x, point.y, pHps->ptlOrigin.x, pHps->ptlOrigin.y));
     408////   else dprintf2(("removeClientArea: %x (%d,%d) (%d,%d)", window->getWindowHandle(), point.x, point.y, pHps->ptlOrigin.x, pHps->ptlOrigin.y));
    409409
    410410}
     
    752752 RECTL    rectlClient;
    753753 RECTL    rectlClip;
     754
     755   if(lpps == NULL) {
     756        //BeginPaint does NOT change last error in this case
     757        //(verified in NT4, SP6)
     758        return 0;
     759   }
    754760
    755761   memset(lpps, 0, sizeof(*lpps));
     
    19001906    if(!pHps)
    19011907    {
    1902     return;
     1908        return;
    19031909    }
    19041910
Note: See TracChangeset for help on using the changeset viewer.