Ignore:
Timestamp:
Nov 26, 1999, 6:06:09 PM (26 years ago)
Author:
cbratschi
Message:

map rect, WM_ERASEBKGND and other fixes

File:
1 edited

Legend:

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

    r1710 r1849  
    1 /* $Id: dc.cpp,v 1.22 1999-11-12 11:38:45 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.23 1999-11-26 17:06:06 cbratschi Exp $ */
    22
    33/*
     
    876876   {
    877877#if 1
    878         // Don't do this for now (causes lots of desktop repaints in WordPad)
     878        // Don't do this for now (causes lots of desktop repaints in WordPad)
    879879         O32_SetLastError (ERROR_INVALID_PARAMETER);
    880880         return FALSE;
     
    12731273    }
    12741274    dprintf(("ScrollWindow %x %d %d\n", hwnd, dx, dy));
    1275     MapWin32ToOS2Rectl(window->getClientRect(), (PRECTLOS2)&clientRect);
     1275    MapWin32ToOS2Rectl(window->getOS2WindowHandle(),window->getClientRect(), (PRECTLOS2)&clientRect);
    12761276    //Rectangle could be relative to parent window, so fix this
    12771277    if(clientRect.yBottom != 0) {
     
    12841284    }
    12851285    if(pScroll) {
    1286          MapWin32ToOS2Rectl((RECT *)pScroll, (PRECTLOS2)&scrollRect);
     1286         MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pScroll, (PRECTLOS2)&scrollRect);
    12871287         pScrollRect = &scrollRect;
    12881288
     
    12971297
    12981298    if(pClip) {
    1299          MapWin32ToOS2Rectl((RECT *)pClip, (PRECTLOS2)&clipRect);
     1299         MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pClip, (PRECTLOS2)&clipRect);
    13001300         pClipRect = &clipRect;
    13011301
     
    13411341    if (scrollFlag & SW_SCROLLCHILDREN_W)  scrollFlags |= SW_SCROLLCHILDREN;
    13421342
    1343     if(pScroll) MapWin32ToOS2Rectl((RECT *)pScroll, (PRECTLOS2)&scrollRect);
    1344     if(pClip)   MapWin32ToOS2Rectl((RECT *)pClip, (PRECTLOS2)&clipRect);
     1343    if(pScroll) MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pScroll, (PRECTLOS2)&scrollRect);
     1344    if(pClip)   MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pClip, (PRECTLOS2)&clipRect);
    13451345
    13461346    RECTL rectlUpdate;
Note: See TracChangeset for help on using the changeset viewer.