1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

add export for warvideo

This commit is contained in:
FunkyFr3sh 2019-04-12 14:11:56 +02:00
parent 63584509e2
commit 0b5064152d
2 changed files with 5 additions and 0 deletions

View File

@ -6,3 +6,4 @@ EXPORTS
GameHandlesClose DATA GameHandlesClose DATA
NvOptimusEnablement DATA NvOptimusEnablement DATA
AmdPowerXpressRequestHighPerformance DATA AmdPowerXpressRequestHighPerformance DATA
pvBmpBits DATA

View File

@ -29,6 +29,7 @@ void dump_ddbltflags(DWORD dwFlags);
void dump_ddscaps(DWORD dwCaps); void dump_ddscaps(DWORD dwCaps);
void dump_ddsd(DWORD dwFlags); void dump_ddsd(DWORD dwFlags);
DWORD WINAPI render_soft_main(void); DWORD WINAPI render_soft_main(void);
void *pvBmpBits;
HRESULT __stdcall ddraw_surface_QueryInterface(IDirectDrawSurfaceImpl *This, REFIID riid, void **obj) HRESULT __stdcall ddraw_surface_QueryInterface(IDirectDrawSurfaceImpl *This, REFIID riid, void **obj)
{ {
@ -1199,6 +1200,9 @@ HRESULT __stdcall ddraw_CreateSurface(IDirectDrawImpl *This, LPDDSURFACEDESC lpD
if (!Surface->bitmap) if (!Surface->bitmap)
Surface->surface = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, Surface->lPitch * (Surface->height + 200) * Surface->lXPitch); Surface->surface = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, Surface->lPitch * (Surface->height + 200) * Surface->lXPitch);
if (lpDDSurfaceDesc->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
pvBmpBits = Surface->surface;
SelectObject(Surface->hDC, Surface->bitmap); SelectObject(Surface->hDC, Surface->bitmap);
} }