mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 13:29:48 +00:00
DXPOLY_Flip
This commit is contained in:
parent
e4a79832cc
commit
a482759d37
@ -33,7 +33,7 @@ EXPORT LPDIRECTDRAW7 lpDD;
|
||||
|
||||
EXPORT DWORD gTotalVideoMemory;
|
||||
LPDIRECTDRAWSURFACE7 g_pDDS_SaveScreen;
|
||||
EXPORT LPDIRECTDRAWSURFACE7 g_pDDS_Scene;
|
||||
LPDIRECTDRAWSURFACE7 g_pDDS_Scene;
|
||||
|
||||
EXPORT LPDIRECTDRAWCLIPPER g_pClipper;
|
||||
|
||||
|
1
DXinit.h
1
DXinit.h
@ -123,6 +123,7 @@ EXPORT extern LPDIRECT3DDEVICE7 g_D3DDevice7;
|
||||
EXPORT extern i32 gDxOptionRelated;
|
||||
EXPORT extern LPDIRECTDRAWSURFACE7 g_pDDS_SaveScreen;
|
||||
EXPORT extern RECT gRect;
|
||||
EXPORT extern LPDIRECTDRAWSURFACE7 g_pDDS_Scene;
|
||||
|
||||
void validate_DXContext(void);
|
||||
void validate_DXContextEntry(void);
|
||||
|
15
DXsound.cpp
15
DXsound.cpp
@ -588,7 +588,20 @@ void DXPOLY_EndScene(bool)
|
||||
// @SMALLTODO
|
||||
void DXPOLY_Flip(void)
|
||||
{
|
||||
printf("DXPOLY_Flip(void)");
|
||||
if (gDxOptionRelated)
|
||||
{
|
||||
DDBLTFX v4;
|
||||
memset(&v4, 0, sizeof(v4));
|
||||
v4.dwSize = sizeof(v4);
|
||||
|
||||
HRESULT hr = g_pDDS_SaveScreen->Blt(&gRect, g_pDDS_Scene, 0, 0x1000000, &v4);
|
||||
D3D_ERROR_LOG_AND_QUIT(hr);
|
||||
}
|
||||
else
|
||||
{
|
||||
HRESULT hr = g_pDDS_SaveScreen->Flip(0, 1);
|
||||
D3D_ERROR_LOG_AND_QUIT(hr);
|
||||
}
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
|
Loading…
Reference in New Issue
Block a user