Ignore:
Timestamp:
Feb 13, 2002, 4:23:10 PM (24 years ago)
Author:
sandervl
Message:

minor updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2CLIPPER.CPP

    r7104 r7897  
    1 /* $Id: OS2CLIPPER.CPP,v 1.16 2001-10-18 07:49:37 sandervl Exp $ */
     1/* $Id: OS2CLIPPER.CPP,v 1.17 2002-02-13 15:23:10 sandervl Exp $ */
    22
    33/*
     
    324324  WinSetVisibleRgnNotifyProc(hwnd, ClipVisRgnCallback, (DWORD)me);
    325325
    326 #if 1
    327326  me->lpRgnData = OSLibQueryVisibleRegion(hwnd, (me->lpDraw) ? me->lpDraw->GetScreenHeight() : 0);
    328327  me->fClipListChanged    = TRUE;
    329328  me->fClipListChangedInt = TRUE; //internal flag
    330 #else
    331   me->lpRgnData = (LPRGNDATA)malloc(sizeof(RGNDATAHEADER) + sizeof(RECT));
    332   me->lpRgnData->rdh.dwSize = sizeof(RGNDATAHEADER);
    333   me->lpRgnData->rdh.iType  = RDH_RECTANGLES;
    334   me->lpRgnData->rdh.nCount = 1;
    335   me->lpRgnData->rdh.nRgnSize = sizeof(RECT);
    336   //TODO: Do we need to return the window rectangle or the client
    337   //      rectangle converted to screen coordinates??????
    338   GetWindowRect(me->clipWindow, &me->lpRgnData->rdh.rcBound);
    339   RECT *rect = (RECT *)&me->lpRgnData->Buffer;
    340   *rect = me->lpRgnData->rdh.rcBound;
    341 #endif
    342 
    343   return(DD_OK);
    344 }
    345 //******************************************************************************
    346 //******************************************************************************
     329
     330  return(DD_OK);
     331}
     332//******************************************************************************
     333//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.