Ignore:
Timestamp:
Jan 13, 2000, 9:11:39 PM (26 years ago)
Author:
sandervl
Message:

Client rectangle changes, GetDCEx bugfix (CS_OWNDC), scroll rectangle calculation fixes

File:
1 edited

Legend:

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

    r2421 r2433  
    1 /* $Id: dc.cpp,v 1.11 2000-01-12 17:37:28 cbratschi Exp $ */
     1/* $Id: dc.cpp,v 1.12 2000-01-13 20:11:36 sandervl Exp $ */
    22
    33/*
     
    679679//   isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : (wnd->isOwnDC() && wnd->getOwnDC()))
    680680   isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : (wnd->isOwnDC()))
    681                  && !(flags & DCX_CACHE_W));
     681                 && !(flags & DCX_CACHE_W|DCX_WINDOW_W));
    682682
    683683   if (isWindowOwnDC)
     
    814814      //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
    815815//      isOwnDC = wnd->isOwnDC() && wnd->getOwnDC();
    816       isOwnDC = wnd->isOwnDC();
     816      isOwnDC = wnd->isOwnDC() && (wnd->getOwnDC() == hdc);
    817817   }
    818818   if (isOwnDC)
     
    839839#endif
    840840
    841 #if 1
    842841   WinUpdateWindow(wnd->getOS2FrameWindowHandle());
    843 #else
    844    wnd->MsgPaint(0);
    845 #endif
    846842
    847843   return (TRUE);
     
    12711267    dprintf(("ScrollWindow %x %d %d %x %x", hwnd, dx, dy, pScroll, pClip));
    12721268    mapWin32ToOS2Rect(window,window->getClientRectPtr(),(PRECTLOS2)&clientRect);
     1269#if 0
    12731270    //Rectangle could be relative to parent window, so fix this
    12741271    if(clientRect.yBottom != 0) {
     
    12801277        clientRect.xLeft   = 0;
    12811278    }
     1279#endif
    12821280    if(pScroll) {
    12831281         mapWin32ToOS2Rect(window,(RECT *)pScroll, (PRECTLOS2)&scrollRect);
Note: See TracChangeset for help on using the changeset viewer.