- Timestamp:
- Jul 15, 1999, 10:42:37 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/OS2SURFACE.CPP
r210 r313 1573 1573 OS2IDirectDrawSurface *dest = (OS2IDirectDrawSurface *)This; 1574 1574 OS2IDirectDrawSurface *src = (OS2IDirectDrawSurface *)lpDDSrcSurface; 1575 ISequence< IRectangle*>::Cursor *EnumCursor;1575 ISequence<DDRectangle*>::Cursor *EnumCursor; 1576 1576 1577 1577 HRESULT rc; … … 1584 1584 char *pBltPos, *pSrcPos; 1585 1585 DDSURFACEDESC2 DestSurfaceDesc, SrcSurfaceDesc; 1586 IRectangle *pIRectDest,*pIRectSrc,*pIRectTest;1586 DDRectangle *pIRectDest,*pIRectSrc,*pIRectTest; 1587 1587 RECTL DestRect, SrcRect; 1588 1588 BOOL Found; … … 1598 1598 if (NULL!=lpDestRect) 1599 1599 { 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); 1604 1604 memcpy(&DestRect,lpDestRect,sizeof(RECTL) ); 1605 1605 } 1606 1606 else 1607 1607 { 1608 pIRectDest = new IRectangle( 0, dest->height, dest->width, 0);1608 pIRectDest = new DDRectangle( 0, 0, dest->height, dest->width); 1609 1609 DestRect.top = 0; 1610 1610 DestRect.left = 0; … … 1737 1737 if (NULL!=lpSrcRect) 1738 1738 { 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); 1743 1743 memcpy(&SrcRect,lpSrcRect,sizeof(RECTL) ); 1744 1744 } 1745 1745 else 1746 1746 { 1747 pIRectSrc = new IRectangle( 0, src->height, src->width, 0);1747 pIRectSrc = new DDRectangle( 0, 0, src->height, src->width); 1748 1748 SrcRect.top = 0; 1749 1749 SrcRect.left = 0; … … 3638 3638 3639 3639 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 3640 ISequence< IRectangle*>::Cursor *EnumCursor;3640 ISequence<DDRectangle*>::Cursor *EnumCursor; 3641 3641 3642 3642 BOOL Found; 3643 3643 ULONG nrScanLines, rc; 3644 3644 char *pBuffer; 3645 IRectangle *pIRectCurrent,*pIRectNew;3645 DDRectangle *pIRectCurrent,*pIRectNew; 3646 3646 static int times = 0; 3647 3647 … … 3656 3656 3657 3657 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 ); 3659 3659 else 3660 pIRectNew = new IRectangle( 0, me->height, me->width, 0);3660 pIRectNew = new DDRectangle( 0, 0, me->height, me->width); 3661 3661 3662 3662 // ToDo : the lockchecking should be done in a critcal seq. … … 3967 3967 3968 3968 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 3969 ISequence< IRectangle*>::Cursor *EnumCursor;3970 IRectangle *pIRectUnlock;3969 ISequence<DDRectangle*>::Cursor *EnumCursor; 3970 DDRectangle *pIRectUnlock; 3971 3971 BOOL Found = FALSE; 3972 3972 … … 3986 3986 { 3987 3987 WriteLog("Unlock rectangle\n"); 3988 pIRectUnlock = new IRectangle( lpSurfaceRect->left, 3988 pIRectUnlock = new DDRectangle( lpSurfaceRect->top, 3989 lpSurfaceRect->left, 3989 3990 lpSurfaceRect->bottom, 3990 lpSurfaceRect->right, 3991 lpSurfaceRect->top); 3991 lpSurfaceRect->right); 3992 3992 } 3993 3993 else 3994 3994 { 3995 3995 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); 3997 3997 } 3998 3998
Note:
See TracChangeset
for help on using the changeset viewer.