Ignore:
Timestamp:
Jul 19, 1999, 8:40:44 PM (26 years ago)
Author:
sandervl
Message:

Point/Rectangle bug fixes

File:
1 edited

Legend:

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

    r332 r340  
    1 /* $Id: oslibwin.cpp,v 1.15 1999-07-18 18:04:29 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.16 1999-07-19 18:40:43 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    226226                          LONG cy, ULONG fl)
    227227{
     228 HWND hwndParent = hwndInsertBehind;
     229
    228230  if(fl & SWP_MOVE) {
    229         y = MapOS2ToWin32Y(hwnd, cy, y);
     231        switch(hwndParent)
     232        {
     233            case HWNDOS_TOP:
     234            case HWNDOS_BOTTOM:
     235                hwndParent = HWND_DESKTOP;
     236                break;
     237        }
     238        y = MapOS2ToWin32Y(hwndParent, cy, y);
    230239  }
    231240  dprintf(("WinSetWindowPos %x %x %d %d %d %d %x", hwnd, hwndInsertBehind, x, y, cx, cy, fl));
     
    255264}
    256265//******************************************************************************
     266//Returns rectangle in Win32 window coordinates
    257267//******************************************************************************
    258268BOOL OSLibWinQueryUpdateRect(HWND hwnd, PVOID pRect)
     
    263273  rc = WinQueryUpdateRect(hwnd, (PRECTL)&rectl);
    264274  if(rc) {
    265     MapOS2ToWin32Rectl(hwnd, &rectl, (PRECT)pRect);
    266   }
     275        MapOS2ToWin32Rectl(&rectl, (PRECT)pRect);
     276  }
     277  else  memset(pRect, 0, sizeof(RECT));
    267278  return rc;
    268279}
Note: See TracChangeset for help on using the changeset viewer.