Ignore:
Timestamp:
Aug 17, 1999, 9:23:33 PM (26 years ago)
Author:
hugh
Message:

Fixed Bug geting divecaps (was not init)

File:
1 edited

Legend:

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

    r522 r536  
    140140  {
    141141    WriteLog("DiveOpen OK\n");
    142     rc = DiveQueryCaps( &dCaps,
    143                         DIVE_BUFFER_SCREEN);
    144   }
     142  }
     143  memset( &dCaps,
     144          0,
     145          sizeof(DIVE_CAPS) );
     146  dCaps.ulStructLen = sizeof(DIVE_CAPS);
     147
     148  rc = DiveQueryCaps( &dCaps,
     149                      DIVE_BUFFER_SCREEN);
     150
    145151
    146152  // Shall we run in FS mode ?
     
    694700  }
    695701
    696  
     702
    697703
    698704  return(DD_OK);
     
    763769    // Clear structure so we only have to set the supported flags
    764770
    765    
     771
    766772    memset(lpDDDriverCaps,0,sizeof(DDCAPS));
    767    
     773
    768774
    769775    // Reset the size
     
    11371143    return(DDERR_INVALIDPARAMS);
    11381144
    1139  
     1145
    11401146
    11411147  if(DD_OK==DrawWaitForVerticalBlank(This, dwFlags, 0))
     
    11601166  }
    11611167
    1162  
     1168
    11631169
    11641170  return(DD_OK);
     
    11991205    return(DDERR_INVALIDPARAMS);
    12001206
    1201  
     1207
    12021208    rc = io_init1();
    1203  
     1209
    12041210
    12051211  if(0==rc)  // try to get IOPL for the thread
    12061212  {
    12071213    *lpbIsInVB = (c_inb1(0x3da)&0x08)!=0;
    1208    
     1214
    12091215      io_exit1(); // reset IOPL
    1210    
     1216
    12111217    return(DD_OK);
    12121218  }
     
    13171323    return (DDERR_UNSUPPORTED);
    13181324
    1319  
     1325
    13201326    rci = io_init1();
    1321  
     1327
    13221328
    13231329  if(rci)  // try to get IOPL for the thread
     
    13501356  }
    13511357
    1352  
     1358
    13531359    io_exit1();
    1354  
     1360
    13551361
    13561362  return (rc);
     
    14491455    return DDERR_INVALIDPARAMS;
    14501456
    1451  
     1457
    14521458
    14531459  memset( lpdddi,
     
    14601466          "ODIN DD Emulation Driver");
    14611467
    1462  
     1468
    14631469
    14641470  return(DD_OK);
     
    14711477  HKEY hkDirectDraw2;
    14721478
    1473  
     1479
    14741480
    14751481  if (bScale)
     
    14871493  }
    14881494
    1489  
    1490 }
    1491 //******************************************************************************
    1492 //******************************************************************************
    1493 
     1495
     1496}
     1497//******************************************************************************
     1498//******************************************************************************
     1499
Note: See TracChangeset for help on using the changeset viewer.