Changeset 4326 for trunk/src


Ignore:
Timestamp:
Sep 25, 2000, 10:54:03 PM (25 years ago)
Author:
mike
Message:

Fixed FS corruption

Location:
trunk/src/ddraw/new
Files:
2 edited

Legend:

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

    r3345 r4326  
    1 /* $Id: OS2SURFACE.CPP,v 1.1 2000-04-07 18:21:05 mike Exp $ */
     1/* $Id: OS2SURFACE.CPP,v 1.2 2000-09-25 20:54:01 mike Exp $ */
    22
    33/*
     
    731731  if(NULL==DPA_SurfaceAttached)
    732732  {
    733     #ifdef DEBUG
    734       dprintf(("DDRAW: Internal : Error creating DPA for attached surfaces\n"));
    735     #endif
     733    dprintf(("DDRAW: Internal : Error creating DPA for attached surfaces\n"));
    736734    lastError = DDERR_OUTOFMEMORY ;
    737735    return;
     
    741739  if(NULL==DPA_LockedRects)
    742740  {
    743     #ifdef DEBUG
    744       dprintf(("DDRAW: Internal : Error creating DPA for Locked Rectangles\n"));
    745     #endif
     741    dprintf(("DDRAW: Internal : Error creating DPA for Locked Rectangles\n"));
    746742    lastError = DDERR_OUTOFMEMORY ;
    747743    return;
     
    751747  if(NULL==DPA_SurfacePrivateData)
    752748  {
    753     #ifdef DEBUG
    754       dprintf(("DDRAW: Internal : Error creating DPA for priva surface Data\n"));
    755     #endif
     749    dprintf(("DDRAW: Internal : Error creating DPA for priva surface Data\n"));
    756750    lastError = DDERR_OUTOFMEMORY ;
    757751    return;
     
    967961      // Update passed in and local Surface description
    968962
    969       #ifdef DEBUG
    970         dprintf(("DDRAW: Setting up Surface\n"));
    971       #endif
     963      dprintf(("DDRAW: Setting up Surface\n"));
     964
    972965      DDSurfaceDesc.dwFlags     |= DDSD_WIDTH | DDSD_HEIGHT |
    973966                                   DDSD_PITCH | DDSD_LPSURFACE |
     
    21922185
    21932186  #ifdef DEBUG
    2194     dprintf(("DDRAW: SurfBlt4 To Surf %08X, from Surf %08X\n",dest,src));
     2187    dprintf(("DDRAW: SurfBlt4 To Surf %08X, from Surf %08X, flags %08X", dest, src, dwFlags));
    21952188    if ( (NULL!=lpDestRect)&& (NULL!=lpSrcRect))
    21962189      dprintf(("DDRAW: SurfBlt4 to (%d,%d)(%d,%d) at %08X from (%d,%d)(%d,%d) at %08X\n", lpDestRect->left, lpDestRect->top,
     
    26002593    {
    26012594      // copy from the screen to a buffer
     2595      dprintf(("DDRAW: Screen to buffer"));
    26022596
    26032597      if( (NULL==lpDestRect) &&
     
    26652659    {
    26662660      // DIVE => DIVE  or Mem => Dive can be handelt in the same way
     2661      dprintf(("DDRAW: Buffer to screen"));
    26672662
    26682663      if( (src->pDiveBuffer == dest->pDiveBuffer) &&
     
    32513246  DWORD dwDestColor, dwSrcColor, BlitWidth, BlitHeight,x,y;
    32523247
    3253   #ifdef DEBUG
    3254     dprintf(("DDRAW: SurfBltFast4 %08X at(%d/%d) onto %08X with flags %08X\n",src, dwX,dwY, dest, dwTrans));
    3255   #endif
     3248  dprintf(("DDRAW: SurfBltFast4 %08X at(%d/%d) onto %08X with flags %08X\n",src, dwX,dwY, dest, dwTrans));
    32563249
    32573250  if( (NULL==lpDDSrcSurface) ||
     
    32923285  if(DDBLTFAST_NOCOLORKEY == dwTrans )
    32933286  {
    3294     dprintf(( "Solid Blit, %d bits => %d bytes per line\n",
     3287    dprintf(( "Solid Blit, %d pels wide => %d bytes per line\n",
    32953288              (SrcRect.right - SrcRect.left),
    32963289              BlitWidth) );
    32973290    #ifdef USE_ASM
    32983291      BltRec(pBltPos, pSrcPos, BlitWidth, BlitHeight,
    3299              dest->dwPitchDB,
    3300              src->dwPitchDB);
     3292             dest->dwPitchDB, src->dwPitchDB);
    33013293    #else
    33023294      // Solid Blit
    33033295      while(1)
    33043296      {
    3305         memcpy(pBltPos,pSrcPos,BlitWidth);
     3297        memcpy(pBltPos, pSrcPos, BlitWidth);
    33063298        pBltPos += dest->dwPitchDB;
    33073299        pSrcPos += src->dwPitchDB;
     
    33163308    dprintf(("DDRAW: TransBlit\n"));
    33173309
    3318     if(dwTrans & DDBLTFAST_SRCCOLORKEY)
     3310    if (dwTrans & DDBLTFAST_SRCCOLORKEY)
    33193311    {
    33203312      dprintf(("DDRAW: Trans SRC\n"));
     
    35813573  return(DD_OK);
    35823574}
     3575
    35833576//******************************************************************************
    35843577//******************************************************************************
     
    35863579{
    35873580  OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This;
    3588   #ifdef DEBUG
    3589     dprintf(("DDRAW: SurfDeleteAttachedSurface\n"));
    3590   #endif
     3581  dprintf(("DDRAW: SurfDeleteAttachedSurface\n"));
    35913582
    35923583  return(SurfDeleteAttachedSurface4(me, dwFlags, (LPDIRECTDRAWSURFACE4)lpDDSurface));
    35933584}
     3585
    35943586//******************************************************************************
    35953587//******************************************************************************
  • trunk/src/ddraw/new/os2fsdd.cpp

    r3345 r4326  
    337337
    338338  // Bail out if we aren't in FS mode
    339   if (!bIsInFS)
    340      return;
     339  if (!bIsInFS) {
     340      SetFS(sel);
     341      return;
     342  }
    341343
    342344  // Get the anchor block
Note: See TracChangeset for help on using the changeset viewer.