Implement palette and surface with null methods
This commit is contained in:
parent
53137e4d8d
commit
f10aad6ffb
5 changed files with 123 additions and 2 deletions
48
surface.c
48
surface.c
|
@ -16,3 +16,51 @@
|
|||
|
||||
#include <windows.h>
|
||||
#include "surface.h"
|
||||
|
||||
/* from main */
|
||||
HRESULT QueryInterface(void *This, REFIID riid, void **obj);
|
||||
ULONG AddRef(void *This);
|
||||
ULONG Release(void *This);
|
||||
HRESULT null();
|
||||
|
||||
fakeDirectDrawSurface siface =
|
||||
{
|
||||
/* IUnknown */
|
||||
QueryInterface,
|
||||
AddRef,
|
||||
Release,
|
||||
/* IDirectDrawSurface */
|
||||
null, // AddAttachedSurface
|
||||
null, // AddOverlayDirtyRect
|
||||
null, // Blt
|
||||
null, // BltBatch
|
||||
null, // BltFast
|
||||
null, // DeleteAttachedSurface
|
||||
null, // EnumAttachedSurfaces
|
||||
null, // EnumOverlayZOrders
|
||||
null, // Flip
|
||||
null, // GetAttachedSurface
|
||||
null, // GetBltStatus
|
||||
null, // GetCaps
|
||||
null, // GetClipper
|
||||
null, // GetColorKey
|
||||
null, // GetDC
|
||||
null, // GetFlipStatus
|
||||
null, // GetOverlayPosition
|
||||
null, // GetPalette
|
||||
null, // GetPixelFormat
|
||||
null, // GetSurfaceDesc
|
||||
null, // Initialize
|
||||
null, // IsLost
|
||||
null, // Lock
|
||||
null, // ReleaseDC
|
||||
null, // Restore
|
||||
null, // SetClipper
|
||||
null, // SetColorKey
|
||||
null, // SetOverlayPosition
|
||||
null, // SetPalette
|
||||
null, // Unlock
|
||||
null, // UpdateOverlay
|
||||
null, // UpdateOverlayDisplay
|
||||
null // UpdateOverlayZOrder
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue