Changeset 6901 for trunk/src/ddraw/OS2SURFACE.CPP
- Timestamp:
- Oct 1, 2001, 12:23:46 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/OS2SURFACE.CPP
r5472 r6901 1 /* $Id: OS2SURFACE.CPP,v 1.3 2 2001-04-04 09:02:14 sandervl Exp $ */1 /* $Id: OS2SURFACE.CPP,v 1.33 2001-09-30 22:23:44 sandervl Exp $ */ 2 2 3 3 /* … … 4516 4516 dprintf(("DDRAW: SurfLock %d %08X %d %d\n", (int)lpRect, (int)lpSurfaceDesc, dwFlags, hEvent)); 4517 4517 4518 if((NULL==lpSurfaceDesc)|| ((dwFlags & DDLOCK_EVENT) && NULL != hEvent)) 4518 if((NULL==lpSurfaceDesc)|| ((dwFlags & DDLOCK_EVENT) && NULL != hEvent)) { 4519 dprintf(("Invalid parameters")); 4519 4520 return DDERR_INVALIDPARAMS; 4520 4521 if(lpSurfaceDesc->dwSize != sizeof(DDSURFACEDESC) && lpSurfaceDesc->dwSize != sizeof(DDSURFACEDESC2)) 4521 } 4522 4523 if(lpSurfaceDesc->dwSize != sizeof(DDSURFACEDESC) && lpSurfaceDesc->dwSize != sizeof(DDSURFACEDESC2)) { 4524 dprintf(("Invalid parameters")); 4522 4525 return DDERR_INVALIDPARAMS; 4526 } 4523 4527 4524 4528 SurfaceDesc4.dwSize = sizeof(DDSURFACEDESC2); … … 4570 4574 4571 4575 if (NULL!=lpRect) 4572 pIRectNew = new DDRectangle( lpRect->left, lpRect->top, lpRect-> bottom, lpRect->right);4576 pIRectNew = new DDRectangle( lpRect->left, lpRect->top, lpRect->right, lpRect->bottom ); 4573 4577 else 4574 pIRectNew = new DDRectangle( 0, 0, me-> height, me->width);4578 pIRectNew = new DDRectangle( 0, 0, me->width, me->height); 4575 4579 4576 4580 // ToDo : the lockchecking should be done in a critcal seq. 4577 4581 dprintf( ("Lock Rectangle (%d/%d) x (%d/%d)\n", 4582 pIRectNew->Left(), 4578 4583 pIRectNew->Top(), 4579 pIRectNew->Left(), 4580 pIRectNew->Bottom(), 4581 pIRectNew->Right() )); 4584 pIRectNew->Right(), 4585 pIRectNew->Bottom())); 4582 4586 4583 4587 rc = DD_OK; … … 4991 4995 dprintf(("DDRAW: Rectangle compare")); 4992 4996 4997 #if 1 4998 i = 0; 4999 pIRectEnum = (DDRectangle*)DPA_FastGetPtr(me->DPA_LockedRects,0); 5000 Found = (pIRectEnum != NULL); 5001 #else 4993 5002 pIRectUnlock = new DDRectangle( 0, 0, me->height, me->width); 4994 5003 … … 5016 5025 } 5017 5026 delete pIRectUnlock; 5027 #endif 5018 5028 } 5019 5029
Note:
See TracChangeset
for help on using the changeset viewer.