grayed out D3D menu options when compiling with NO_D3D

This commit is contained in:
spacy51 2007-12-23 21:15:34 +00:00
parent d0f5238734
commit 01f9f5ed36
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
}