- Timestamp:
- Aug 31, 2000, 10:51:57 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/ddraw.CPP
r4135 r4137 1 /* $Id: ddraw.CPP,v 1.1 3 2000-08-31 12:48:42sandervl Exp $ */1 /* $Id: ddraw.CPP,v 1.14 2000-08-31 20:51:57 sandervl Exp $ */ 2 2 3 3 /* … … 6 6 * Copyright 1998 Sander va Leeuwen 7 7 * Copyright 1999 Markus Montkowski 8 * 9 * WARNING: DirectDrawCreate defaults to ddraw v4 if lpGUID == NULL!! 10 * 8 11 * 9 12 * Project Odin Software License can be found in LICENSE.TXT … … 45 48 else 46 49 { 47 newdraw->Vtbl.AddRef((IDirectDraw2 *)newdraw); 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); 55 48 56 rc = newdraw->GetLastError(); 49 57 if(rc != DD_OK) … … 53 61 delete newdraw; 54 62 } 55 else56 *lplpDD = (LPDIRECTDRAW)newdraw;57 63 } 58 64 return(rc);
Note:
See TracChangeset
for help on using the changeset viewer.