forked from metin2/client
Upgraded to DirectX 9
This commit is contained in:
@ -113,7 +113,7 @@ int CPythonApplication::OnLogoUpdate()
|
||||
{
|
||||
m_bLogoError = true;
|
||||
|
||||
LPDIRECT3DTEXTURE8 tex = m_pLogoTex->GetD3DTexture();
|
||||
LPDIRECT3DTEXTURE9 tex = m_pLogoTex->GetD3DTexture();
|
||||
D3DLOCKED_RECT rt;
|
||||
ZeroMemory(&rt, sizeof(rt));
|
||||
|
||||
@ -158,7 +158,7 @@ int CPythonApplication::OnLogoUpdate()
|
||||
}
|
||||
|
||||
// <20>غ<EFBFBD><D8BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ۿ<EFBFBD><DBBF><EFBFBD> <20>ؽ<EFBFBD><D8BD>ķ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؿ´<D8BF>.
|
||||
LPDIRECT3DTEXTURE8 tex = m_pLogoTex->GetD3DTexture();
|
||||
LPDIRECT3DTEXTURE9 tex = m_pLogoTex->GetD3DTexture();
|
||||
D3DLOCKED_RECT rt;
|
||||
ZeroMemory(&rt, sizeof(rt));
|
||||
|
||||
@ -197,8 +197,8 @@ void CPythonApplication::OnLogoRender()
|
||||
{
|
||||
if(!m_pLogoTex->IsEmpty() && !m_bLogoError && true == bInitializedLogo)
|
||||
{
|
||||
STATEMANAGER.SetTextureStageState(0, D3DTSS_MINFILTER, D3DTEXF_LINEAR);
|
||||
STATEMANAGER.SetTextureStageState(0, D3DTSS_MAGFILTER, D3DTEXF_LINEAR);
|
||||
STATEMANAGER.SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR);
|
||||
STATEMANAGER.SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR);
|
||||
m_pLogoTex->SetTextureStage(0);
|
||||
CPythonGraphic::instance().RenderTextureBox(m_nLeft, m_nTop, m_nRight, m_nBottom, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f);
|
||||
}
|
||||
@ -235,8 +235,8 @@ void CPythonApplication::OnLogoClose()
|
||||
if(m_pFilterSG != NULL) m_pFilterSG->Release(); m_pFilterSG = NULL;
|
||||
if(m_pGraphBuilder != NULL) m_pGraphBuilder->Release(); m_pGraphBuilder = NULL;
|
||||
|
||||
STATEMANAGER.SetTextureStageState(0, D3DTSS_MINFILTER, D3DTEXF_POINT);
|
||||
STATEMANAGER.SetTextureStageState(0, D3DTSS_MAGFILTER, D3DTEXF_POINT);
|
||||
STATEMANAGER.SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_POINT);
|
||||
STATEMANAGER.SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_POINT);
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user