Ignore:
Timestamp:
Aug 17, 1999, 2:44:46 PM (26 years ago)
Author:
sandervl
Message:

divewrap bugfixes + removal of FS save/restore macro calls

File:
1 edited

Legend:

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

    r503 r522  
    2222#include "os2DDWindow.h"
    2323#include "os2palset.h"
    24 #include <odincrt.h>
     24
    2525#define KEY_DIRECT2 "\\Software\\Win32OS2\\Direct2"
    2626#define KEY_DIRECT2DRAW "\\Software\\Win32OS2\\Direct2\\Draw"
     
    128128  }
    129129
    130   ODIN_FS_BEGIN
    131     rc = DiveOpen( &hDive,
    132                    FALSE,
    133                    &pFrameBuffer);
    134   ODIN_FS_END
     130  rc = DiveOpen( &hDive,
     131                 FALSE,
     132                 &pFrameBuffer);
    135133  if(rc)
    136134  {
     
    242240    if(me->Referenced == 0)
    243241    {
    244       ODIN_delete(me);
     242      delete(me);
    245243      rc = 0;
    246244    }
     
    271269 HRESULT                rc;
    272270
    273  ODIN_FS_BEGIN
    274 
    275271  newclip = new OS2IDirectDrawClipper(me);
    276272
     
    295291      *lplpDD = (IDirectDrawClipper *)newclip;
    296292  }
    297 
    298   ODIN_FS_END
    299293
    300294  return(rc);
     
    311305  HRESULT                rc = DD_OK;
    312306  int                    palsize = 0;
    313 
    314   ODIN_FS_BEGIN
    315307
    316308  if(dwFlags & DDPCAPS_8BITENTRIES)
     
    360352  }
    361353
    362   ODIN_FS_END
    363 
    364354  return(rc);
    365355}
     
    373363 OS2IDirectDrawSurface *newsurf;
    374364 HRESULT                rc;
    375 
    376   ODIN_FS_BEGIN
    377365
    378366  #ifdef DEBUG
     
    410398  }
    411399
    412   ODIN_FS_END
    413 
    414400  return(rc);
    415401}
     
    423409 OS2IDirectDrawSurface *newsurf;
    424410 HRESULT                rc;
    425 
    426   ODIN_FS_BEGIN
    427411
    428412  #ifdef DEBUG
     
    461445  }
    462446
    463   ODIN_FS_END
    464 
    465447  return(rc);
    466448}
     
    508490  }
    509491
    510 
    511   ODIN_FS_BEGIN
    512492
    513493  // Setting up the surface
     
    538518        if(!lpDDEnumModesCallback(&DDSurfAct,lpContext))
    539519        {
    540           {ODIN_FS_END
    541520          return (DD_OK);
    542521        }
     
    610589        if(!lpDDEnumModesCallback(&DDSurfAct,lpContext))
    611590        {
    612           {ODIN_FS_END
    613591          return (DD_OK);
    614592        }
     
    682660      if (lpDDSurfaceDesc->dwFlags & !(DDSD_WIDTH|DDSD_HEIGHT|DDSD_PIXELFORMAT))
    683661      {
    684         {ODIN_FS_END
    685662        return(DDERR_INVALIDPARAMS);
    686663      }
     
    717694  }
    718695
    719   ODIN_FS_END
     696 
    720697
    721698  return(DD_OK);
     
    786763    // Clear structure so we only have to set the supported flags
    787764
    788     ODIN_FS_BEGIN
     765   
    789766    memset(lpDDDriverCaps,0,sizeof(DDCAPS));
    790     ODIN_FS_END
     767   
    791768
    792769    // Reset the size
     
    11601137    return(DDERR_INVALIDPARAMS);
    11611138
    1162   ODIN_FS_BEGIN
     1139 
    11631140
    11641141  if(DD_OK==DrawWaitForVerticalBlank(This, dwFlags, 0))
     
    11831160  }
    11841161
    1185   ODIN_FS_END
     1162 
    11861163
    11871164  return(DD_OK);
     
    12221199    return(DDERR_INVALIDPARAMS);
    12231200
    1224   ODIN_FS_BEGIN
     1201 
    12251202    rc = io_init1();
    1226   ODIN_FS_END
     1203 
    12271204
    12281205  if(0==rc)  // try to get IOPL for the thread
    12291206  {
    12301207    *lpbIsInVB = (c_inb1(0x3da)&0x08)!=0;
    1231     ODIN_FS_BEGIN
     1208   
    12321209      io_exit1(); // reset IOPL
    1233     ODIN_FS_END
     1210   
    12341211    return(DD_OK);
    12351212  }
     
    13401317    return (DDERR_UNSUPPORTED);
    13411318
    1342   ODIN_FS_BEGIN
     1319 
    13431320    rci = io_init1();
    1344   ODIN_FS_END
     1321 
    13451322
    13461323  if(rci)  // try to get IOPL for the thread
     
    13731350  }
    13741351
    1375   ODIN_FS_BEGIN
     1352 
    13761353    io_exit1();
    1377   ODIN_FS_END
     1354 
    13781355
    13791356  return (rc);
     
    14721449    return DDERR_INVALIDPARAMS;
    14731450
    1474   ODIN_FS_BEGIN
     1451 
    14751452
    14761453  memset( lpdddi,
     
    14831460          "ODIN DD Emulation Driver");
    14841461
    1485   ODIN_FS_END
     1462 
    14861463
    14871464  return(DD_OK);
     
    14941471  HKEY hkDirectDraw2;
    14951472
    1496   ODIN_FS_BEGIN
     1473 
    14971474
    14981475  if (bScale)
     
    15101487  }
    15111488
    1512   ODIN_FS_END
    1513 }
    1514 //******************************************************************************
    1515 //******************************************************************************
    1516 
     1489 
     1490}
     1491//******************************************************************************
     1492//******************************************************************************
     1493
Note: See TracChangeset for help on using the changeset viewer.