Ignore:
Timestamp:
Jan 27, 2000, 6:21:10 PM (26 years ago)
Author:
cbratschi
Message:

WINE code clean-up

File:
1 edited

Legend:

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

    r2515 r2529  
    1 /* $Id: dc.cpp,v 1.36 2000-01-25 20:39:41 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.37 2000-01-27 17:21:08 cbratschi Exp $ */
    22
    33/*
     
    828828   if (hwnd)
    829829   {
    830         Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
    831         if(wnd == NULL) {
    832                 dprintf(("ERROR: ReleaseDC %x %x failed", hwnd, hdc));
    833                 return 0;
    834         }
    835         //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     830        Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
     831        if(wnd == NULL) {
     832                dprintf(("ERROR: ReleaseDC %x %x failed", hwnd, hdc));
     833                return 0;
     834        }
     835        //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
    836836//      isOwnDC = wnd->isOwnDC() && wnd->getOwnDC();
    837         isOwnDC = wnd->isOwnDC() && (wnd->getOwnDC() == hdc);
     837        isOwnDC = wnd->isOwnDC() && (wnd->getOwnDC() == hdc);
    838838   }
    839839   if (isOwnDC)
     
    10401040{
    10411041   BOOL result;
    1042    
     1042
    10431043   result = RedrawWindow (hwnd, pRect, NULLHANDLE,
    10441044                          RDW_ALLCHILDREN_W | RDW_INVALIDATE_W |
     
    12501250 APIRET  rc;
    12511251 RECTL   clientRect;
     1252 PRECT   pClientRect;
    12521253 RECTL   scrollRect;
    12531254 RECTL   clipRect;
    1254  PRECT   pClientRect;
    12551255 PRECTL  pScrollRect = NULL;
    12561256 PRECTL  pClipRect   = NULL;
     
    12631263    }
    12641264    dprintf(("ScrollWindow %x %d %d %x %x", hwnd, dx, dy, pScroll, pClip));
     1265
    12651266    pClientRect = window->getClientRectPtr();
    12661267    clientRect.xLeft   = 0;
     
    12681269    clientRect.xRight  = pClientRect->right - pClientRect->left;
    12691270    clientRect.yTop    = pClientRect->bottom - pClientRect->top;
     1271
    12701272    if(pScroll) {
    12711273         mapWin32ToOS2Rect(window,(RECT *)pScroll, (PRECTLOS2)&scrollRect);
Note: See TracChangeset for help on using the changeset viewer.