grayed out D3D menu options when compiling with NO_D3D

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@226 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
spacy51 2007-12-23 21:15:34 +00:00
parent 4382e41696
commit 077d2bcc9a
1 changed files with 14 additions and 2 deletions

View File

@ -535,30 +535,42 @@ void MainWnd::OnUpdateOptionsVideoDdrawusevideomemory(CCmdUI* pCmdUI)
void MainWnd::OnOptionsVideoRenderoptionsD3dnofilter()
{
#ifndef NO_D3D
theApp.d3dFilter = 0;
if( theApp.display ) {
theApp.display->setOption( _T("d3dFilter"), theApp.d3dFilter );
}
#endif
}
void MainWnd::OnUpdateOptionsVideoRenderoptionsD3dnofilter(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(theApp.d3dFilter == 0);
#ifndef NO_D3D
pCmdUI->SetCheck(theApp.d3dFilter == 0);
#else
pCmdUI->Enable( FALSE );
#endif
}
void MainWnd::OnOptionsVideoRenderoptionsD3dbilinear()
{
#ifndef NO_D3D
theApp.d3dFilter = 1;
if( theApp.display ) {
theApp.display->setOption( _T("d3dFilter"), theApp.d3dFilter );
}
#endif
}
void MainWnd::OnUpdateOptionsVideoRenderoptionsD3dbilinear(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(theApp.d3dFilter == 1);
#ifndef NO_D3D
pCmdUI->SetCheck(theApp.d3dFilter == 1);
#else
pCmdUI->Enable( FALSE );
#endif
}