Ignore:
Timestamp:
Oct 1, 2001, 12:23:46 AM (24 years ago)
Author:
sandervl
Message:

clipper updates

File:
1 edited

Legend:

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

    r5472 r6901  
    1 /* $Id: OS2SURFACE.CPP,v 1.32 2001-04-04 09:02:14 sandervl Exp $ */
     1/* $Id: OS2SURFACE.CPP,v 1.33 2001-09-30 22:23:44 sandervl Exp $ */
    22
    33/*
     
    45164516  dprintf(("DDRAW: SurfLock %d %08X %d %d\n", (int)lpRect, (int)lpSurfaceDesc, dwFlags, hEvent));
    45174517
    4518   if((NULL==lpSurfaceDesc)|| ((dwFlags & DDLOCK_EVENT) && NULL != hEvent))
     4518  if((NULL==lpSurfaceDesc)|| ((dwFlags & DDLOCK_EVENT) && NULL != hEvent)) {
     4519    dprintf(("Invalid parameters"));
    45194520    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"));
    45224525    return DDERR_INVALIDPARAMS;
     4526  }
    45234527
    45244528  SurfaceDesc4.dwSize = sizeof(DDSURFACEDESC2);
     
    45704574
    45714575  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 );
    45734577  else
    4574     pIRectNew = new DDRectangle( 0, 0, me->height, me->width);
     4578    pIRectNew = new DDRectangle( 0, 0, me->width, me->height);
    45754579
    45764580  // ToDo : the lockchecking should be done in a critcal seq.
    45774581  dprintf( ("Lock Rectangle (%d/%d) x (%d/%d)\n",
     4582            pIRectNew->Left(),
    45784583            pIRectNew->Top(),
    4579             pIRectNew->Left(),
    4580             pIRectNew->Bottom(),
    4581             pIRectNew->Right() ));
     4584            pIRectNew->Right(),
     4585            pIRectNew->Bottom()));
    45824586
    45834587  rc = DD_OK;
     
    49914995    dprintf(("DDRAW: Rectangle compare"));
    49924996
     4997#if 1
     4998    i = 0;
     4999    pIRectEnum = (DDRectangle*)DPA_FastGetPtr(me->DPA_LockedRects,0);
     5000    Found = (pIRectEnum != NULL);
     5001#else
    49935002    pIRectUnlock = new DDRectangle( 0, 0, me->height, me->width);
    49945003
     
    50165025    }
    50175026    delete pIRectUnlock;
     5027#endif
    50185028  }
    50195029
Note: See TracChangeset for help on using the changeset viewer.