Changeset 313 for trunk/src


Ignore:
Timestamp:
Jul 15, 1999, 10:42:37 PM (26 years ago)
Author:
hugh
Message:

Changed to from IRectangel to new DDRectangle type

File:
1 edited

Legend:

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

    r210 r313  
    15731573 OS2IDirectDrawSurface *dest = (OS2IDirectDrawSurface *)This;
    15741574 OS2IDirectDrawSurface *src  = (OS2IDirectDrawSurface *)lpDDSrcSurface;
    1575  ISequence<IRectangle*>::Cursor *EnumCursor;
     1575 ISequence<DDRectangle*>::Cursor *EnumCursor;
    15761576
    15771577 HRESULT                rc;
     
    15841584 char                   *pBltPos, *pSrcPos;
    15851585 DDSURFACEDESC2         DestSurfaceDesc, SrcSurfaceDesc;
    1586  IRectangle             *pIRectDest,*pIRectSrc,*pIRectTest;
     1586 DDRectangle             *pIRectDest,*pIRectSrc,*pIRectTest;
    15871587 RECTL                  DestRect, SrcRect;
    15881588 BOOL Found;
     
    15981598  if (NULL!=lpDestRect)
    15991599  {
    1600     pIRectDest = new IRectangle( lpDestRect->left,
    1601                                  lpDestRect->bottom,
    1602                                  lpDestRect->right,
    1603                                  lpDestRect->top);
     1600    pIRectDest = new DDRectangle( lpDestRect->top,
     1601                                  lpDestRect->left,
     1602                                  lpDestRect->bottom,
     1603                                  lpDestRect->right);
    16041604    memcpy(&DestRect,lpDestRect,sizeof(RECTL) );
    16051605  }
    16061606  else
    16071607  {
    1608     pIRectDest = new IRectangle( 0, dest->height, dest->width, 0);
     1608    pIRectDest = new DDRectangle( 0, 0, dest->height, dest->width);
    16091609    DestRect.top    = 0;
    16101610    DestRect.left   = 0;
     
    17371737  if (NULL!=lpSrcRect)
    17381738  {
    1739     pIRectSrc = new IRectangle( lpSrcRect->left,
    1740                                 lpSrcRect->bottom,
    1741                                 lpSrcRect->right,
    1742                                 lpSrcRect->top);
     1739    pIRectSrc = new DDRectangle( lpSrcRect->top,
     1740                                 lpSrcRect->left,
     1741                                 lpSrcRect->bottom,
     1742                                 lpSrcRect->right);
    17431743    memcpy(&SrcRect,lpSrcRect,sizeof(RECTL) );
    17441744  }
    17451745  else
    17461746  {
    1747     pIRectSrc = new IRectangle( 0, src->height, src->width, 0);
     1747    pIRectSrc = new DDRectangle( 0, 0, src->height, src->width);
    17481748    SrcRect.top    = 0;
    17491749    SrcRect.left   = 0;
     
    36383638
    36393639  OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This;
    3640   ISequence<IRectangle*>::Cursor *EnumCursor;
     3640  ISequence<DDRectangle*>::Cursor *EnumCursor;
    36413641
    36423642  BOOL Found;
    36433643  ULONG  nrScanLines, rc;
    36443644  char *pBuffer;
    3645   IRectangle *pIRectCurrent,*pIRectNew;
     3645  DDRectangle *pIRectCurrent,*pIRectNew;
    36463646  static int times = 0;
    36473647
     
    36563656
    36573657  if (NULL!=lpRect)
    3658     pIRectNew = new IRectangle( lpRect->left, lpRect->bottom, lpRect->right, lpRect->top);
     3658    pIRectNew = new DDRectangle( lpRect->left, lpRect->top, lpRect->bottom, lpRect->right );
    36593659  else
    3660     pIRectNew = new IRectangle( 0, me->height, me->width, 0);
     3660    pIRectNew = new DDRectangle( 0, 0, me->height, me->width);
    36613661
    36623662  // ToDo : the lockchecking should be done in a critcal seq.
     
    39673967
    39683968  OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This;
    3969   ISequence<IRectangle*>::Cursor *EnumCursor;
    3970   IRectangle *pIRectUnlock;
     3969  ISequence<DDRectangle*>::Cursor *EnumCursor;
     3970  DDRectangle *pIRectUnlock;
    39713971  BOOL Found = FALSE;
    39723972
     
    39863986  {
    39873987    WriteLog("Unlock rectangle\n");
    3988     pIRectUnlock = new IRectangle( lpSurfaceRect->left,
     3988    pIRectUnlock = new DDRectangle( lpSurfaceRect->top,
     3989                                   lpSurfaceRect->left,
    39893990                                   lpSurfaceRect->bottom,
    3990                                    lpSurfaceRect->right,
    3991                                    lpSurfaceRect->top);
     3991                                   lpSurfaceRect->right);
    39923992  }
    39933993  else
    39943994  {
    39953995    WriteLog("Unlock complete surface\n");
    3996     pIRectUnlock = new IRectangle( 0, me->height, me->width, 0);
     3996    pIRectUnlock = new DDRectangle( 0, 0, me->height, me->width);
    39973997  }
    39983998
Note: See TracChangeset for help on using the changeset viewer.