Ignore:
Timestamp:
May 2, 2003, 5:33:17 PM (22 years ago)
Author:
sandervl
Message:

Keep track of all open DCs and query the visible region during WM_VRNENABLED to work around a PM bug

File:
1 edited

Legend:

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

    r9933 r10060  
    1 /* $Id: dc.cpp,v 1.118 2003-03-22 20:27:10 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.119 2003-05-02 15:33:15 sandervl Exp $ */
    22
    33/*
     
    885885            dprintf2(("ReleaseDC: CS_OWNDC, not released"));
    886886        }
     887        if(!isOwnDC && !wnd->isDesktopWindow()) {
     888            //remove from list of open DCs for this window
     889            wnd->removeOpenDC(hdc);
     890        }
    887891        RELEASE_WNDOBJ(wnd);
    888892    }
     
    11031107
    11041108    dprintf (("User32: GetDCEx hwnd %x (%x %x) -> hdc %x", hwnd, hrgn, flags, pHps->hps));
     1109
     1110    //add to list of open DCs for this window
     1111    if(wnd->isDesktopWindow() == FALSE) {//not relevant for the desktop window
     1112         wnd->addOpenDC((HDC)pHps->hps);
     1113    }
     1114
    11051115    RELEASE_WNDOBJ(wnd);
    11061116
Note: See TracChangeset for help on using the changeset viewer.