mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
add export for warvideo
This commit is contained in:
parent
63584509e2
commit
0b5064152d
@ -6,3 +6,4 @@ EXPORTS
|
||||
GameHandlesClose DATA
|
||||
NvOptimusEnablement DATA
|
||||
AmdPowerXpressRequestHighPerformance DATA
|
||||
pvBmpBits DATA
|
||||
|
@ -29,6 +29,7 @@ void dump_ddbltflags(DWORD dwFlags);
|
||||
void dump_ddscaps(DWORD dwCaps);
|
||||
void dump_ddsd(DWORD dwFlags);
|
||||
DWORD WINAPI render_soft_main(void);
|
||||
void *pvBmpBits;
|
||||
|
||||
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)
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user