Changeset 1746 for trunk/src/ddraw/OS2DDRAW.CPP
- Timestamp:
- Nov 14, 1999, 11:16:32 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/OS2DDRAW.CPP
r1568 r1746 17 17 #include <builtin.h> 18 18 #include "cio2.h" 19 19 #include "os2util.h" 20 20 // include with the videomodes we support 21 21 // better would be to get these modes from the card … … 176 176 else 177 177 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 } 178 189 } 179 190 //****************************************************************************** … … 1558 1569 HRESULT rc; 1559 1570 int rci; 1560 1571 USHORT sel; 1561 1572 dprintf(("DDRAW: WaitForVerticalBlank\n")); 1562 1573 … … 1564 1575 return (DDERR_UNSUPPORTED); 1565 1576 1566 1567 rci = io_init1(); 1568 1577 return DD_OK; 1578 1579 rci = InitIO(); 1569 1580 1570 1581 if(rci) // try to get IOPL for the thread … … 1574 1585 } 1575 1586 // AT this point we should have IOPL so lets use it! 1587 dprintf(("DDRAW: IOPL 3!\n")); 1576 1588 1577 1589 rc = DDERR_INVALIDPARAMS; // set returnvalue to fail … … 1579 1591 if(DDWAITVB_BLOCKBEGIN == dwFlags) 1580 1592 { 1593 dprintf(("DDRAW: BLOCKBEGIN\n")); 1594 1581 1595 while ((c_inb1(0x3da)&0x08)!=0); // Wait for end of vert. retrace if one is running 1582 1596 while ((c_inb1(0x3da)&0x08)==0); // Wait for new start of retrace … … 1586 1600 if(DDWAITVB_BLOCKEND == dwFlags) 1587 1601 { 1602 dprintf(("DDRAW: BLOCKEND\n")); 1588 1603 rc = DD_OK; 1589 1604 if((c_inb1(0x3da)&0x08)!=0) // Are we in a vert. retrace
Note:
See TracChangeset
for help on using the changeset viewer.