Changeset 4139 for trunk/src/ddraw/ddraw.CPP
- Timestamp:
- Aug 31, 2000, 11:03:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/ddraw.CPP
r4137 r4139 1 /* $Id: ddraw.CPP,v 1.1 4 2000-08-31 20:51:57sandervl Exp $ */1 /* $Id: ddraw.CPP,v 1.15 2000-08-31 21:03:14 sandervl Exp $ */ 2 2 3 3 /* … … 48 48 else 49 49 { 50 if(!lpGUID) { 51 //WARNING: defaults to ddraw v4 52 newdraw->Vtbl.QueryInterface((IDirectDraw2 *)newdraw, &IID_IDirectDraw4, (LPVOID *)lplpDD); 53 } 54 else newdraw->Vtbl.QueryInterface((IDirectDraw2 *)newdraw, lpGUID, (LPVOID *)lplpDD); 50 newdraw->Vtbl.AddRef((IDirectDraw2 *)newdraw); 55 51 56 52 rc = newdraw->GetLastError(); 57 53 if(rc != DD_OK) 58 54 { 59 *lplpDD = NULL;60 61 delete newdraw;55 *lplpDD = NULL; 56 57 delete newdraw; 62 58 } 59 else *lplpDD = (LPDIRECTDRAW)newdraw; 63 60 } 64 61 return(rc); … … 89 86 //SvL: Crashes dxview.exe; expects a different vtbl when creating 90 87 // an IID_IDirect3D object 91 #if 088 #if 1 92 89 else //now for Direct3D 93 90 {
Note:
See TracChangeset
for help on using the changeset viewer.