refactoring

This commit is contained in:
FunkyFr3sh 2021-06-11 20:30:43 +02:00
parent fa19797956
commit 1f11bf8b84
52 changed files with 2596 additions and 2071 deletions

View file

@ -3,17 +3,15 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "ddraw.h"
#include <ddraw.h>
DEFINE_GUID(IID_IDirectDrawGammaControl, 0x69C11C3E, 0xB46B, 0x11D1, 0xAD, 0x7A, 0x00, 0xC0, 0x4F, 0xC2, 0x9B, 0x4E);
struct IDirectDrawGammaControlImpl;
struct IDirectDrawGammaControlImplVtbl;
typedef struct IDirectDrawGammaControlImpl
{
struct IDirectDrawGammaControlImplVtbl *lpVtbl;
struct IDirectDrawGammaControlImplVtbl* lpVtbl;
ULONG ref;
@ -21,16 +19,17 @@ typedef struct IDirectDrawGammaControlImpl
typedef struct IDirectDrawGammaControlImplVtbl IDirectDrawGammaControlImplVtbl;
#undef INTERFACE
#define INTERFACE IDirectDrawGammaControlImpl
struct IDirectDrawGammaControlImplVtbl
{
/* IUnknown */
HRESULT (__stdcall *QueryInterface)(IDirectDrawGammaControlImpl *, REFIID, void **);
ULONG (__stdcall *AddRef)(IDirectDrawGammaControlImpl *);
ULONG (__stdcall *Release)(IDirectDrawGammaControlImpl *);
/* IDirectDrawGammaControl */
HRESULT(__stdcall* GetGammaRamp)(IDirectDrawGammaControlImpl*, DWORD, void*);
HRESULT(__stdcall* SetGammaRamp)(IDirectDrawGammaControlImpl*, DWORD, void*);
/*** IUnknown methods ***/
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
STDMETHOD_(ULONG, AddRef) (THIS) PURE;
STDMETHOD_(ULONG, Release) (THIS) PURE;
/*** IDirectDrawGammaControl methods ***/
STDMETHOD(GetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE;
STDMETHOD(SetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE;
};
extern struct IDirectDrawGammaControlImplVtbl g_ddgc_vtbl;