fix: linux build
Some checks failed
C/C++ CI / build-win (push) Waiting to run
C/C++ CI / build-mac (push) Waiting to run
C/C++ CI / build-linux (clang++) (push) Failing after 0s
C/C++ CI / build-linux (g++) (push) Failing after 0s

did first test run
This commit is contained in:
krystalgamer 2024-09-11 19:07:07 +02:00
parent a6089a3204
commit af93d59434
3 changed files with 13 additions and 2 deletions

View File

@ -1058,12 +1058,14 @@ void DXPOLY_SetOutlineColor(u32 a1)
// @Matching
INLINE void DXPOLY_SetTexture(LPDIRECTDRAWSURFACE7 a1)
{
#ifdef _WIN32
if (a1 != gDDSurface7)
{
HRESULT hr = g_D3DDevice7->SetTexture(0, a1);
D3D_ERROR_LOG_AND_QUIT(hr);
gDDSurface7 = a1;
}
#endif
}
// @SMALLTODO
@ -1171,6 +1173,7 @@ void loadWAV(char *,tWAVEFORMATEX *,long *)
// @Ok
INLINE void DXPOLY_SetAddressUAndV(DWORD addressU, DWORD addressV)
{
#ifdef _WIN32
if (addressU != gAddressU)
{
g_D3DDevice7->SetTextureStageState(0, D3DTSS_ADDRESSU, addressU);
@ -1182,6 +1185,7 @@ INLINE void DXPOLY_SetAddressUAndV(DWORD addressU, DWORD addressV)
g_D3DDevice7->SetTextureStageState(0, D3DTSS_ADDRESSV, addressV);
gAddressV = addressV;
}
#endif
}
// @NotOk

View File

@ -83,8 +83,12 @@ extern int FAIL_VALIDATION;
// @MEDIUMTODO
void SpideyMain(void)
{
while(1);
printf("void SpideyMain(void)");
while(1)
{
DXPOLY_SetBackgroundColor(0xFF800080);
DXPOLY_BeginScene();
DXPOLY_EndScene(true);
}
}
// @Ok

View File

@ -37,6 +37,9 @@ typedef void* LPDIRECTDRAWCLIPPER;
typedef void* LPDIRECT3D7;
typedef void* LPDDPIXELFORMAT;
typedef void* LPDIRECT3DDEVICE7;
typedef float D3DVALUE;
typedef u32 D3DCOLOR;
typedef i32 LONG;
struct DSCAPS
{