diff --git a/src/EterPythonLib/PythonGraphic.cpp b/src/EterPythonLib/PythonGraphic.cpp index 34e4c37..98a9d66 100644 --- a/src/EterPythonLib/PythonGraphic.cpp +++ b/src/EterPythonLib/PythonGraphic.cpp @@ -32,6 +32,7 @@ void CPythonGraphic::SetInterfaceRenderState() STATEMANAGER.SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE); STATEMANAGER.SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA); STATEMANAGER.SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA); + STATEMANAGER.SetRenderState(D3DRS_MULTISAMPLEANTIALIAS, FALSE); CPythonGraphic::Instance().SetBlendOperation(); CPythonGraphic::Instance().SetOrtho2D(ms_iWidth, ms_iHeight, GetOrthoDepth()); @@ -47,6 +48,7 @@ void CPythonGraphic::SetGameRenderState() STATEMANAGER.SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE); STATEMANAGER.SetRenderState(D3DRS_LIGHTING, TRUE); + STATEMANAGER.SetRenderState(D3DRS_MULTISAMPLEANTIALIAS, TRUE); } void CPythonGraphic::SetCursorPosition(int x, int y)