Ignore:
Timestamp:
Nov 14, 1999, 11:16:32 PM (26 years ago)
Author:
hugh
Message:

Fixes to let RA run

File:
1 edited

Legend:

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

    r1568 r1746  
    1717#include <builtin.h>
    1818#include "cio2.h"
    19 
     19#include "os2util.h"
    2020// include with the videomodes we support
    2121// better would be to get these modes from the card
     
    176176  else
    177177    bScale = FALSE;
     178
     179  rc = InitIO();
     180
     181  if(rc)  // try to get IOPL for the thread
     182  {
     183    dprintf(("DDRAW: No IOPL\n"));
     184  }
     185  else
     186  {
     187    dprintf(("DDRAW: IOPL 3!\n"));
     188  }
    178189}
    179190//******************************************************************************
     
    15581569  HRESULT rc;
    15591570  int rci;
    1560 
     1571  USHORT sel;
    15611572  dprintf(("DDRAW: WaitForVerticalBlank\n"));
    15621573
     
    15641575    return (DDERR_UNSUPPORTED);
    15651576
    1566 
    1567   rci = io_init1();
    1568 
     1577  return DD_OK;
     1578
     1579  rci = InitIO();
    15691580
    15701581  if(rci)  // try to get IOPL for the thread
     
    15741585  }
    15751586  // AT this point we should have IOPL so lets use it!
     1587  dprintf(("DDRAW: IOPL 3!\n"));
    15761588
    15771589  rc = DDERR_INVALIDPARAMS; // set returnvalue to fail
     
    15791591  if(DDWAITVB_BLOCKBEGIN == dwFlags)
    15801592  {
     1593    dprintf(("DDRAW: BLOCKBEGIN\n"));
     1594
    15811595    while ((c_inb1(0x3da)&0x08)!=0); // Wait for end of vert. retrace if one is running
    15821596    while ((c_inb1(0x3da)&0x08)==0); // Wait for new start of retrace
     
    15861600  if(DDWAITVB_BLOCKEND == dwFlags)
    15871601  {
     1602    dprintf(("DDRAW: BLOCKEND\n"));
    15881603    rc = DD_OK;
    15891604    if((c_inb1(0x3da)&0x08)!=0)        // Are we in a vert. retrace
Note: See TracChangeset for help on using the changeset viewer.