Ignore:
Timestamp:
Dec 7, 1999, 9:43:40 PM (26 years ago)
Author:
sandervl
Message:

Owndc changes

File:
1 edited

Legend:

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

    r2010 r2016  
    1 /* $Id: dc.cpp,v 1.26 1999-12-07 18:19:47 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.27 1999-12-07 20:43:39 sandervl Exp $ */
    22
    33/*
     
    343343INT revertDy (Win32BaseWindow *wnd, INT dy)
    344344{
     345   //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     346//   if (wnd->isOwnDC() && wnd->getOwnDC())
    345347   if (wnd->isOwnDC())
    346348   {
     
    438440   if ((hwnd != HWND_DESKTOP) && wnd->isOwnDC())
    439441   {
    440       hPS_ownDC = wnd->getOwnDC();
    441       pHps = (pDCData)GpiQueryDCData(hPS_ownDC);
    442       if (!pHps)
    443       {
    444          O32_SetLastError (ERROR_INVALID_PARAMETER);
    445          return (HDC)NULLHANDLE;
    446       }
     442        hPS_ownDC = wnd->getOwnDC();
     443        //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     444        if(hPS_ownDC) {
     445                pHps = (pDCData)GpiQueryDCData(hPS_ownDC);
     446                if (!pHps)
     447                {
     448                        O32_SetLastError (ERROR_INVALID_PARAMETER);
     449                        return (HDC)NULLHANDLE;
     450                }
     451        }
    447452   }
    448453
     
    499504   if (!wnd) goto exit;
    500505
    501    if(wnd->isOwnDC())
     506   //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     507   if(wnd->isOwnDC() && wnd->getOwnDC())
     508//   if(wnd->isOwnDC())
    502509   {
    503510       pDCData pHps = (pDCData)GpiQueryDCData((HPS)pPaint->hdc);
     
    535542   if (updateRegionExists)
    536543   {
     544      //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     545//      if (wnd->isOwnDC() && wnd->getOwnDC())
    537546      if (wnd->isOwnDC())
    538547      {
     
    612621   dprintf (("User32: GetDCEx hwnd %x (%x %x) -> wnd %x", hwnd, hrgn, flags, wnd));
    613622
    614    isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : wnd->isOwnDC())
     623   //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     624//   isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : (wnd->isOwnDC() && wnd->getOwnDC()))
     625   isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : (wnd->isOwnDC()))
    615626                 && !(flags & DCX_CACHE_W));
    616627
     
    747758   {
    748759      Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
     760      //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     761//      isOwnDC = wnd->isOwnDC() && wnd->getOwnDC();
    749762      isOwnDC = wnd->isOwnDC();
    750763   }
Note: See TracChangeset for help on using the changeset viewer.