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() void MainWnd::OnOptionsVideoRenderoptionsD3dnofilter()
{ {
#ifndef NO_D3D
theApp.d3dFilter = 0; theApp.d3dFilter = 0;
if( theApp.display ) { if( theApp.display ) {
theApp.display->setOption( _T("d3dFilter"), theApp.d3dFilter ); theApp.display->setOption( _T("d3dFilter"), theApp.d3dFilter );
} }
#endif
} }
void MainWnd::OnUpdateOptionsVideoRenderoptionsD3dnofilter(CCmdUI* pCmdUI) void MainWnd::OnUpdateOptionsVideoRenderoptionsD3dnofilter(CCmdUI* pCmdUI)
{ {
#ifndef NO_D3D
pCmdUI->SetCheck(theApp.d3dFilter == 0); pCmdUI->SetCheck(theApp.d3dFilter == 0);
#else
pCmdUI->Enable( FALSE );
#endif
} }
void MainWnd::OnOptionsVideoRenderoptionsD3dbilinear() void MainWnd::OnOptionsVideoRenderoptionsD3dbilinear()
{ {
#ifndef NO_D3D
theApp.d3dFilter = 1; theApp.d3dFilter = 1;
if( theApp.display ) { if( theApp.display ) {
theApp.display->setOption( _T("d3dFilter"), theApp.d3dFilter ); theApp.display->setOption( _T("d3dFilter"), theApp.d3dFilter );
} }
#endif
} }
void MainWnd::OnUpdateOptionsVideoRenderoptionsD3dbilinear(CCmdUI* pCmdUI) void MainWnd::OnUpdateOptionsVideoRenderoptionsD3dbilinear(CCmdUI* pCmdUI)
{ {
#ifndef NO_D3D
pCmdUI->SetCheck(theApp.d3dFilter == 1); pCmdUI->SetCheck(theApp.d3dFilter == 1);
#else
pCmdUI->Enable( FALSE );
#endif
} }