Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed May 9, 2024
1 parent 0c79e06 commit 2748e6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ddraw/IDirect3DDeviceX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4183,12 +4183,12 @@ inline void m_IDirect3DDeviceX::SetDrawStates(DWORD dwVertexTypeDesc, DWORD& dwF
// Check for color key texture
for (UINT x = 0; x < MaxTextureBlendStages; x++)
{
if (CurrentTextureSurfaceX[x] && CurrentTextureSurfaceX[x]->IsColorKeyTexture() && CurrentTextureSurfaceX[x]->GetD3DrawTexture())
if (CurrentTextureSurfaceX[x] && CurrentTextureSurfaceX[x]->IsColorKeyTexture() && CurrentTextureSurfaceX[x]->Get3DDrawTexture())
{
(*d3d9Device)->SetRenderState(D3DRS_ALPHATESTENABLE, TRUE);
(*d3d9Device)->SetRenderState(D3DRS_ALPHAFUNC, D3DCMP_GREATER);
(*d3d9Device)->SetRenderState(D3DRS_ALPHAREF, (DWORD)0x01);
(*d3d9Device)->SetTexture(x, CurrentTextureSurfaceX[x]->GetD3DrawTexture());
(*d3d9Device)->SetTexture(x, CurrentTextureSurfaceX[x]->Get3DDrawTexture());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ddraw/IDirectDrawSurfaceX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3668,7 +3668,7 @@ void m_IDirectDrawSurfaceX::ReleaseSurface()
DeleteCriticalSection(&ddlcs);
}

LPDIRECT3DTEXTURE9 m_IDirectDrawSurfaceX::GetD3DrawTexture()
LPDIRECT3DTEXTURE9 m_IDirectDrawSurfaceX::Get3DDrawTexture()
{
// Check if texture already exists
if (surface.DrawTexture)
Expand Down
2 changes: 1 addition & 1 deletion ddraw/IDirectDrawSurfaceX.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class m_IDirectDrawSurfaceX : public IUnknown, public AddressLookupTableDdrawObj
}
inline void AttachD9BackBuffer() { Is3DRenderingTarget = true; }
inline void DetachD9BackBuffer() { Is3DRenderingTarget = false; }
LPDIRECT3DTEXTURE9 GetD3DrawTexture();
LPDIRECT3DTEXTURE9 Get3DDrawTexture();
LPDIRECT3DSURFACE9 Get3DSurface();
LPDIRECT3DTEXTURE9 Get3DTexture();
LPDIRECT3DTEXTURE9 Get3DPaletteTexture() { return primary.PaletteTexture; }
Expand Down

0 comments on commit 2748e6b

Please sign in to comment.