add OBS game capture support for bnet lobby

This commit is contained in:
FunkyFr3sh 2021-11-07 22:42:55 +01:00
parent b4cb502f6a
commit 6a241ca0ae
10 changed files with 160 additions and 14 deletions

View file

@ -30,6 +30,10 @@ typedef struct IDirectDrawSurfaceImpl
DWORD l_pitch;
DWORD lx_pitch;
void* bnet_surface;
HDC bnet_dc;
HBITMAP bnet_bitmap;
PBITMAPINFO bmi;
HBITMAP bitmap;
HDC hdc;

View file

@ -33,6 +33,6 @@ HRESULT dds_Unlock(IDirectDrawSurfaceImpl* This, LPRECT lpRect);
HRESULT dds_GetDDInterface(IDirectDrawSurfaceImpl* This, LPVOID* lplpDD);
void* dds_GetBuffer(IDirectDrawSurfaceImpl* This);
HRESULT dd_CreateSurface(IDirectDrawImpl* This, LPDDSURFACEDESC lpDDSurfaceDesc, IDirectDrawSurfaceImpl** lpDDSurface, IUnknown FAR* unkOuter);
void dds_RedrawBnet(IDirectDrawSurfaceImpl* This);
#endif

View file

@ -9,6 +9,7 @@
#define WM_DISPLAYCHANGE_DDRAW WM_APP+116
#define IDT_TIMER_LEAVE_BNET 541287654
#define IDT_TIMER_REDRAW_BNET 541287655
LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);