Implement GetCaps for ddraw and surface, GetPalette and SetPalette for surface
This commit is contained in:
parent
4ffda7b73f
commit
15ff8f8e2a
4 changed files with 68 additions and 15 deletions
14
palette.c
14
palette.c
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include "palette.h"
|
||||
|
||||
/* from main */
|
||||
|
@ -23,6 +24,19 @@ ULONG AddRef(void *This);
|
|||
ULONG Release(void *This);
|
||||
HRESULT null();
|
||||
|
||||
HRESULT ddraw_CreatePalette(void *This, LPPALETTEENTRY DDColorArray, LPDIRECTDRAWPALETTE FAR * DDPalette, IUnknown FAR * unkOuter)
|
||||
{
|
||||
printf("DirectDraw::CreatePalette(This=%p, DDColorArray=%p, DDPalette=%p, unkOuter=%p)\n", This, DDColorArray, DDPalette, unkOuter);
|
||||
|
||||
fakeDirectDrawPaletteObject *Palette = (fakeDirectDrawPaletteObject *)malloc(sizeof(fakeDirectDrawPaletteObject));
|
||||
Palette->Ref = 1;
|
||||
Palette->Functions = &piface;
|
||||
printf(" Palette = %p\n", Palette);
|
||||
*DDPalette = (LPDIRECTDRAWPALETTE)Palette;
|
||||
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
fakeDirectDrawPalette piface =
|
||||
{
|
||||
/* IUnknown */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue