Ignore:
Timestamp:
Aug 31, 2000, 7:57:10 PM (25 years ago)
Author:
sandervl
Message:

QueryInterface fix

File:
1 edited

Legend:

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

    r4135 r4136  
    1 /* $Id: OS2DDRAW.H,v 1.12 2000-08-31 12:48:41 sandervl Exp $ */
     1/* $Id: OS2DDRAW.H,v 1.13 2000-08-31 17:57:10 sandervl Exp $ */
    22
    33/*
     
    4242                                       // ToDO :
    4343                                       // debug into DirectDrawCreate and se what MS is doing !
     44    //Use for Direct3D interface (This != this)
     45    IDirect3DVtbl    *lpVtbl3D;
     46    IDirect3DVtbl    *lpVtbl3D2;
     47    DWORD            *pdwUnknownData3D;
     48
    4449    IDirectDrawVtbl  Vtbl;
    4550    IDirectDraw2Vtbl  Vtbl2;
     
    141146};
    142147
     148#define OFFSET_D3DVTABLE        (LONG)(&((OS2IDirectDraw *)NULL)->lpVtbl3D)
     149#define DDraw3D_GetThisPtr(a)   (OS2IDirectDraw *)((ULONG)a-OFFSET_D3DVTABLE)
     150
    143151//******************************************************************************
    144152HRESULT __stdcall DrawQueryInterface(THIS, REFIID riid, LPVOID  * ppvObj);
Note: See TracChangeset for help on using the changeset viewer.