Ignore:
Timestamp:
Sep 26, 1999, 5:25:55 PM (26 years ago)
Author:
sandervl
Message:

ScrollWindow fix

File:
1 edited

Legend:

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

    r1063 r1064  
    1 /* $Id: dc.cpp,v 1.6 1999-09-26 14:44:58 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.7 1999-09-26 15:25:55 sandervl Exp $ */
    22
    33/*
     
    13011301 PRECTL  pScrollRect = NULL;
    13021302 PRECTL  pClipRect   = NULL;
    1303  ULONG   scrollFlags = 0;
     1303 ULONG   scrollFlags = SW_INVALIDATERGN;
    13041304
    13051305    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     
    13101310    dprintf(("ScrollWindow %x %d %d\n", hwnd, dx, dy));
    13111311    MapWin32ToOS2Rectl(window->getClientRect(), (PRECTLOS2)&clientRect);
     1312    //Rectangle could be relative to parent window, so fix this
     1313    if(clientRect.yBottom != 0) {
     1314        clientRect.yTop   -= clientRect.yBottom;
     1315        clientRect.yBottom = 0;
     1316    }
     1317    if(clientRect.xLeft != 0) {
     1318        clientRect.xRight -= clientRect.xLeft;
     1319        clientRect.xLeft   = 0;
     1320    }
    13121321    if(pScroll) {
    13131322         MapWin32ToOS2Rectl((RECT *)pScroll, (PRECTLOS2)&scrollRect);
Note: See TracChangeset for help on using the changeset viewer.