Implement GetSurfaceDesc, EnumAttachedSurfaces and Flip in IDirectDrawSurface, adds Carmageddon support to mainline

This commit is contained in:
Toni Spets 2011-06-29 23:18:42 +03:00
parent a40282013b
commit 706874f7f9
3 changed files with 44 additions and 11 deletions

View file

@ -17,6 +17,7 @@
#include <windows.h>
#include <stdio.h>
#include "palette.h"
#include "surface.h"
HRESULT __stdcall ddraw_palette_GetEntries(IDirectDrawPaletteImpl *This, DWORD dwFlags, DWORD dwBase, DWORD dwNumEntries, LPPALETTEENTRY lpEntries)
{
@ -44,7 +45,10 @@ HRESULT __stdcall ddraw_palette_SetEntries(IDirectDrawPaletteImpl *This, DWORD d
}
}
ReleaseSemaphore(ddraw->render.sem, 1, NULL);
if(ddraw->primary && !(ddraw->primary->flags & DDSD_BACKBUFFERCOUNT) && ddraw->render.run)
{
ReleaseSemaphore(ddraw->render.sem, 1, NULL);
}
return DD_OK;
}